howdyai / botkit-storage-mongo

A MongoDB storage driver for Botkit
MIT License
54 stars 42 forks source link

feature(monk): pass options to monk .find() calls #40

Open ericrallen opened 5 years ago

ericrallen commented 5 years ago

This allows the user to easily apply limit and sort options along with various other Mongo options to the .find() query via the standard API that monk exposes.

I added a test, but it is rather unclear how the tests for this project are supposed to work and I could never get more than the first two to pass. I'd be happy to revisit the tests if you can tell me what I need to do to get them running.

Closes #39

ericrallen commented 5 years ago

@benbrown Hey there, I know this repo probably doesn't get as much love as it used to, but is there anything we can do to help get some of these open PRs across the finish line?

This one in particular is a big deal if you are storing any other data in the MongoDB instance and need to query it.