Query.all ("name", "a", "B");//match array with multiple elements
Query.and (Query.eq ("name", "a"), Query.eq ("title", "T"));//satisfy multiple conditions at the same time
query.eq ("name", "a");//equals
query.exists ("type", true);//Determine if key value exists
query.gt ("value", 2);//greater Than >
Query.gte ("value", 3);//greater than or equal to >=
query.in ("name", "a", "B");//Includes all values specified, you can specify different types of conditions and values
query.lt ("value", 9);//Less than <
Query.lte ("value", 8);//less than or equal to <=
query.mod ("Value", 3, 1);//Divide the query value by the first given value and return the result if the remainder equals the second given value
query.ne ("name", "C");//Not equal to
Query.nor (array);//do not include values in the array
query.not ("name");//element Conditional statement
query.notin ("name", "a", 2);//Returns a document that does not match all the conditions in the array
query.or (Query.eq ("name", "a"), Query.eq ("title", "T"));//satisfies one of the conditions
query.size ("name", 2);//The length of the given key
Query.type ("_id", bsontype.objectid);//The type of the given key
Query.where (Bsonjavascript);//execute JavaScript
Query.matches ("Title", str);//fuzzy query equivalent to SQL in like--STR can contain regular expressions
Http://www.cnblogs.com/stone_w/archive/2012/12/12/2814056.html
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Several methods of MongoDB Query