-
Type: Task
-
Resolution: Duplicate
-
Priority: Minor - P4
-
Affects Version/s: 3.1.4
-
Component/s: None
-
Environment:x86_64 Linux 4.19.8-arch1-1-ARCH
Node v11.5.0
mongodb node module 3.1.4
mongodb version v4.0.4
-
Empty show more show less
I wonder why the MongoDB Node.JS driver doesn't use the same option names as the ones on the official MongoDB documentation.
http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#findOneAndUpdate
https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndUpdate/
Here for example, is there any reason why does the driver use the option 'returnOriginal' instead of 'returnNewDocument'?
Thanks.