Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Locations.aggregate([
- { "$match": { "name": "development" } },
- {
- "$lookup": {
- "from": "users",
- "localField": "followers",
- "foreignField": "_id",
- "as": "followers"
- }
- }
- ])
- Locations.find( ...aggregation goes here )
Add Comment
Please, Sign In to add comment