From 68e2c69e76126ea516fedf106ec93b5d76bd8c98 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 9 Jul 2013 16:51:01 +0200 Subject: [PATCH] Update README.md Fixed small typo. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 81dba5e..07c213b 100644 --- a/README.md +++ b/README.md @@ -270,7 +270,7 @@ db.update({ planet: 'Mars' }, { $set: { "data.satellites": 2, "data.red": true } // } // Not that to set fields in subdocuments, you HAVE to use dot-notation // Using object-notation will just replace the top-level field - db.update({ planet: 'Mars' }, { $set: { date: { satellites: 3 } } }, {}, function () { + db.update({ planet: 'Mars' }, { $set: { data: { satellites: 3 } } }, {}, function () { // Mars document now is { _id: 'id1', system: 'solar', inhabited: false // , data: { satellites: 3 } // }