Created
May 27, 2017 06:27
-
-
Save Tabrizian/2204eb2e989c542f6073067136fbab1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongoimport --db test --collection restaurants --drop --file ~/downloads/primer-dataset.json | |
db.users.find( {} ) | |
{ <field1>: <value1>, ... } | |
db.users.find( { status: "A" } ) | |
db.users.find( { status: { $in: [ "P", "D" ] } } ) | |
db.users.find( { status: "A", age: { $lt: 30 } } ) | |
{ $or: [ { status: "A" }, { age: { $lt: 30 } } ] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment