mongodb $near query if document has geolocation

12 Views Asked by At

i cannot use the $near uery within an $or. The problem is, that not every document has a geolocation, so currently i want to find all document that are within a range or that do not have a geolocation. Is there a way to accomplish this in one query? Or do i have to create a temporary table?

0

There are 0 best solutions below