Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //db.recepies.find({required_time: {$lt: 25}})
- //db.recepies.find({name: "Glass of water"})
- //db.recepies.find({name: {$in: ["Pizza dough", "Pancakes"]}})
- //db.recepies.find({required_time: {$gte: 20, $lte: 30}})
- //db.recepies.find({complexity: {$nin: [3,2,1]}})
- //db.recepies.find({grades: {$all: [10,10,10,10]}})
- //db.recepies.find({$and: [{grades: 3}, {grades: 4}, {grades: 5}, {grades: 6}]})
- //db.recepies.find({"ingrediends.quanity": {$exists: true, $nin:[5,15]}})
- //db.recepies.find({$or: [{"author.name": "Stefan"}, {"author.name": "Lidija"}]})
- //db.recepies.find({grades: 10})
- db.recepies.find(ingredients: {$elemMatch: {name: ""}})
- //db.movies.find({"cast.name": "Leonardo DiCaprio"})
- //db.movies.find({$and: [{genre: "Action"}, {year: {$gte: 2000, $lte: 2010}}]})
- //db.movies.find({director: {$ne: "Christopher Nolan"}}, {title: 1})
- //db.movies.update({_id: ObjectId("56dff4ed81ff8ec80e2c3295")}, {$set : {budget: 1000000}})
- //db.movies.find({_id: ObjectId("56dff4ed81ff8ec80e2c3295")})
- //db.movies.find({},{title: 1}).sort({budget: -1}).limit(10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement