Skip to content

Commit

Permalink
Merge branch '2.2' of github.com:mongodb/node-mongodb-native into 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
christkv committed Feb 13, 2017
2 parents 2603748 + 941417e commit 671f286
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/reference/content/quick-start/index.md
Expand Up @@ -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);
Expand Down
5 changes: 2 additions & 3 deletions docs/reference/content/tutorials/connect/authenticating.md
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/content/tutorials/create-indexes.md
Expand Up @@ -43,7 +43,7 @@ var createAscendingIndex = function(db, callback) {

## Create a Descending Index

For an ascending index type, specify ``-1`` for ``<type>``.
For an descending index type, specify ``-1`` for ``<type>``.

The following example specifies a descending index key on the
``lastName`` field:
Expand Down

0 comments on commit 671f286

Please sign in to comment.