From cf2eaae6fca7ad968129040ba0e8274f23edf540 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Mon, 16 Jun 2014 18:14:46 -0400 Subject: [PATCH] findAndModify remove field removes query selector When remove is true we remove the first document that matches the query field not the update field. --- source/reference/method/db.collection.findAndModify-param.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/reference/method/db.collection.findAndModify-param.yaml b/source/reference/method/db.collection.findAndModify-param.yaml index 8c8fb1c3834..7fae10ccc4b 100644 --- a/source/reference/method/db.collection.findAndModify-param.yaml +++ b/source/reference/method/db.collection.findAndModify-param.yaml @@ -39,7 +39,7 @@ type: Boolean position: 3 description: | Must specify either the ``remove`` or the ``update`` field. Removes - the document specified in the ``update`` field. Set this to ``true`` + the document specified in the ``query`` field. Set this to ``true`` to remove the selected document . The default is ``false``. --- object: