-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: Not Applicable
-
Component/s: Docs
-
None
-
Empty show more show less
The CRUD tutorial page http://mongodb.github.io/node-mongodb-native/3.1/quick-start/quick-start/ (there are other pages too)
Shows connecting as:
// Create a new MongoClient const client = new MongoClient(url); // Use connect method to connect to the Server client.connect(url, function(err, client) { ... }
When this should have been just:
MongoClient.connect(url, function(err, client) { ... }
Or :
MongoClient.connect(url, { useNewUrlParser: true }, function(err, client) {
...
}
This seems to be getting from master
However, the branch v3.0 and v3.1 seems to do it correctly