From a85e4bbc1afaef7f1ae47be60bd11f65bbe724ea Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Thu, 16 May 2013 15:41:00 +0300 Subject: [PATCH] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 2e3c86a..92c9029 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,11 @@ db.findOne({ _id: 'id1' }, function (err, doc) { * `options` is an object with two possible parameters: `multi` (defaults to `false`) which allows the modification of several documents if set to true, and `upsert` (defaults to `false`) if you want to insert a new document corresponding to the `update` rules if your `query` doesn't match anything * `callback` (optional) signature: err, numReplaced, upsert. `numReplaced` is the number of documents replaced and `upsert` is set to true if the upsert mode was chosen and a document was inserted +```javascript +// Let's use the same example collection as in the "finding document" part + +``` + ## Performance ### Speed