Details
-
Improvement
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
None
-
None
-
Empty show more show less
Description
Several pages go back and forth between using MongoClient (the new way) and Db (the old way) when talking about connecting to MongoDB. It's confusing when the code sample is one and the explanatory text is the other, especially if you weren't around when most of the drivers switched over to use MongoClient syntax
code sample uses MongoClient.connect, but text talks about Db.connect
2)
http://mongodb.github.io/node-mongodb-native/api-generated/admin.html
Code sample imports MongoClient but never uses it. Page is for the Admin() constructor, which takes a db object. Code sample doesn't appear to use this constructor and instead uses db = new Db( dbNameStr, new Server (... and then calls db.admin()