A special feature of Mongo Management Studio is to enter the queries as quickly and easily as possible. The following example queries refer to the zipcode collection from the Getting started tutorial.
MongoDB queries always distinguishes between upper and lowercase. To work around this, you can use Regular Expressions.
Of course it is possible to make more complex queries in this manner.
When using an options object curly brackets must be used in the query object.
If you want to use "$elemMatch" with ObjectIds or ISODates in the options (see example), you must use the console mode.
In the table view you can also sort without having to use a sort option. For this purpose, it is enough to click on the name of a column to sort by that. The sorting is reversed by repeated clicking on the column name.
Special data types
The following queries will each return the same result if you are looking for a specific ObjectId
Mongo Management Studio recognizes strings,having the format of a MongoDB ObjectId and converts them. Should it happen that _ids stored as strings in a collection and they are compliant to MongoDB ObjectId, you have to use the Console mode for the query. Otherwise, no data is found.
Date values must be entered in a specific syntax because they can´t be converted automatically.
Regex as a data field value assignment
If a field of a document has a value with a regex expression, you can this query as follows.
You must specify the complete regex expression to obtain the corresponding document with the correct value.
Regex queries for fields with strings
You can also use regex to query fields.
In the current version only the parameter "i" and "m" are supported as options in the short notation. The parameter "s" and "x" follow in a later version.
Here you can read more detailed information about the use of regex expressions in queries: http://docs.mongodb.org/manual/reference/operator/query/regex/