Skip to content

Commit

Permalink
doc(connect): 'Connecting' example code returns a deprecation warning (
Browse files Browse the repository at this point in the history
…#2029)

* doc(connect): 'connecting' example code returns a deprecation warning. Fix the example code.

Fixes NODE-1849
  • Loading branch information
rosemaryy authored and daprahamian committed Aug 13, 2019
1 parent f996ab3 commit 23f1ac9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const assert = require('assert');
const url = 'mongodb://localhost:27017/myproject';
// Database Name
const dbName = 'myproject';
const client = new MongoClient(url);
const client = new MongoClient(url, { useNewUrlParser: true });

try {
// Use connect method to connect to the Server
Expand Down

0 comments on commit 23f1ac9

Please sign in to comment.