ArcheontPB

Mongodb

Dec 9th, 2019
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # 1.1
  2. db.cities.find({city:"Pacynków", "reachable_from.city":"Kałużów"}, {"reachable_from.$.city":"Kałużów"}).pretty()
  3.  
  4. https://docs.mongodb.com/manual/aggregation/
RAW Paste Data