Mongodb – Mongo aggregation use $sort in conjunction with $geoNear
Context : I'm trying to build an architecture displaying POIs which can be at different know locations over time. I have 2 collections, pois { _id: ObjectId, name: string } locations _id: ObjectId, point: { type: 'Point', coordinates: Array<number> },…