I am trying to add a stage with geoNear operator, but i get error on server.
pipeline = [
{
geoNear: {
near: { type: “GeoPoint”, coordinates: [4.8078815, 75.6917359] },
distanceField: “dist.calculated”,
minDistance: 2,
query: { type: “public” },
includeLocs: “dist.location”,
num: 5,
spherical: true
}
}
]
Someone know how do to use it?