I have written my own MongoDB connector with the following methods which works perfectly fine:
db('foo').collection('bar').then(collection = collection.find(something))
This looks a bit ugly, I try to get rid of that then to get something like this:
db('foo').collection('bar').find(something)
Is there a way to obtain this by proccessing that Promise result somehow?