Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > db.movies.find()
- > db.movies.find({writer: "Quentin Tarantino"})
- > db.movies.find({actors: 'Brad Pitt'})
- > db.movies.find({franchise: 'The Hobbit'})
- > db.movies.find({ $and: [{year: {$gt:1989}}, {year: {$lt: 2000}}]})
- > db.movies.find({ $or: [{year: {$lt:2000}}, {year: {$gt: 2010}}]})
Advertisement
Add Comment
Please, Sign In to add comment