Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.parsed_data.aggregate(
- {
- $match : {$and: [{"Origin.Code": "AHO" }, {"Destination.Code" : "TRN" }]}
- },
- {$unwind: "$Segments"},
- {
- $group : {_id : "$Segments.Carrier" }//_id : "$Origin.Code"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement