You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also I'm wondering if you need to depend on the entire mongo driver at all in this module. SInce it only looks like you use it for ObjectID (and tests) you could npm i --save-dev mongodb and npm i --save objectid for a lighter install footprint.
As an aside, quite a lot has changed in the driver from v1 to v2. The method names are very clunky and it seems to be a less user friendly API in my opinion 👎
https://mongodb.github.io/node-mongodb-native/2.0/meta/changes-from-1.0/
The changes to the
insert()
,update()
andremove()
methods mean that it calls back with "mongodb-core" result object rather than the saved object.The text was updated successfully, but these errors were encountered: