express-mongo-db
express-mongo-db copied to clipboard
Get db connection in request object
Hi, please upgrade mongodb to 3.6.0 and add async
Can you please provide an example of how to call req.db properly? (e.g. `req.db.collection.find({})`); Everything I've tried returns an error that find is not a function.
I'm just wondering... Doesn't it matter that your route has a db connection in its request and basically your route knows about your database and collection structure? Maybe I'm wrong......
New driver requires node js 4+
It would be great if it this middleware could use a peer dependency instead of the fixed version you use. https://stackoverflow.com/a/34645112/4266494
#13 is Trying to be merged, but due to node v0.x still being supported, small syntactic issues are causing the build to fail (lack of semi-colons, etc). I'm not seeing...