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