I want to use that in my cloudCode. I'm on Parse server 4.2. I would like to know if it's possible de create a Parse Query and to use agregate on field with geoNear or geoWithin ?
Something like that for example:
const userLat = 43.3;
const userLng = 5.3;
const slotQuery = new Parse.Query(Slot);
return await slotsQuery.aggregate([
{
$geoNear: {
near: [userLat, userLng],
distanceField: 'meetPointLocation',
maxDistance: 2,
}
}
]);
Thanks everyone for your help!