From c073c29827c221a6e51298dea6507576f33e7439 Mon Sep 17 00:00:00 2001 From: Bryan O'Doyle Date: Fri, 12 Apr 2013 15:56:46 -0700 Subject: [PATCH] Update query.txt to facilitate noobs to either MongoDB or working in a Shell, toss in occassional added material to cover material that matters and can be addressed with minimal effort or space. --- source/reference/operator/query.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/reference/operator/query.txt b/source/reference/operator/query.txt index 6245fa4f128..e1b5d03b59f 100644 --- a/source/reference/operator/query.txt +++ b/source/reference/operator/query.txt @@ -13,6 +13,12 @@ $query db.collection.find( { $query: { age : 25 } } ) + Similar example, with text as value rather than a number: + + .. code-block:: javascript + + db.collection.find( { $query: { agegroup : "Senior" } } ) + This is equivalent to the following :method:`db.collection.find()` method that may be more familiar to you: