SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. db.restaurant.find()
  2. db.restaurants.find().
  3.   sort( {name: 1} ).
  4.   limit(10)
  5. db.restaurants.findOne()
  6. db.restaurants.find({"_id": ObjectId("")})
  7. db.restaurants.find({borough: "Queens"}, {_id: 1, name: 1, address: 1 })
  8. db.restaurants.count()
  9. db.restaurants.find({"address.zipcode": "11206"}).pretty()
  10. db.restaurants.deleteOne({_id: ObjectId("")})
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top