I'm in PHP and i have a document that may have a location or not and I use geonear on it. I want to keep the location with null value. How can i do ?
[
'$geoNear' => [
'near' => [
'type' => 'Point',
'coordinates' => [$logitude, $latitude],
],
'query' => [
'matchingUUID' => $uuid,
],
'distanceField' => 'destination.calculatedDistance',
'spherical' => true,
],
]
Thanks a lot