From 3f91d05c5c6e80cae4ad9bf8ce855e7dba6a7db4 Mon Sep 17 00:00:00 2001 From: Roi Atalla Date: Thu, 26 Jan 2017 00:47:40 -0500 Subject: [PATCH 1/3] Fixed typo in create-indexes --- docs/reference/content/tutorials/create-indexes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/content/tutorials/create-indexes.md b/docs/reference/content/tutorials/create-indexes.md index add2646cac..92b1aba468 100644 --- a/docs/reference/content/tutorials/create-indexes.md +++ b/docs/reference/content/tutorials/create-indexes.md @@ -43,7 +43,7 @@ var createAscendingIndex = function(db, callback) { ## Create a Descending Index -For an ascending index type, specify ``-1`` for ````. +For an descending index type, specify ``-1`` for ````. The following example specifies a descending index key on the ``lastName`` field: From 16ede54732b1d809dc767da8d819c60848529a9d Mon Sep 17 00:00:00 2001 From: maicss Date: Sat, 11 Feb 2017 15:03:26 +0800 Subject: [PATCH 2/3] https://jira.mongodb.org/browse/NODE-932 --- docs/reference/content/tutorials/connect/authenticating.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/reference/content/tutorials/connect/authenticating.md b/docs/reference/content/tutorials/connect/authenticating.md index 0aa8d5efc0..6869d0f42d 100644 --- a/docs/reference/content/tutorials/connect/authenticating.md +++ b/docs/reference/content/tutorials/connect/authenticating.md @@ -38,11 +38,10 @@ var MongoClient = require('mongodb').MongoClient, var user = encodeURIComponent('dave'); var password = encodeURIComponent('abc123'); var authMechanism = 'DEFAULT'; -var authSource = 'myproject'; // Connection URL -var url = f('mongodb://%s:%s@localhost:27017?authMechanism=%s&authSource=', - user, password, authMechanism, authSource); +var url = f('mongodb://%s:%s@localhost:27017/myproject?authMechanism=%s', + user, password, authMechanism); // Use connect method to connect to the Server MongoClient.connect(url, function(err, db) { From fe04423f155c323227f4a8527f8ef068c6967875 Mon Sep 17 00:00:00 2001 From: Oscar Busk Date: Sat, 11 Feb 2017 22:45:03 +0100 Subject: [PATCH 3/3] Fix typo in node quickstart The comment for deleteOne was still "insert some documents" --- docs/reference/content/quick-start/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/content/quick-start/index.md b/docs/reference/content/quick-start/index.md index 933b36b41b..456e521ae0 100644 --- a/docs/reference/content/quick-start/index.md +++ b/docs/reference/content/quick-start/index.md @@ -246,7 +246,7 @@ Remove the document where the field **a** is equal to **3**. var removeDocument = function(db, callback) { // Get the documents collection var collection = db.collection('documents'); - // Insert some documents + // Delete document where a is 3 collection.deleteOne({ a : 3 }, function(err, result) { assert.equal(err, null); assert.equal(1, result.result.n);