Thank you for developing and maintaining Eve, a wonderful package.
A query such as: ?where={"user_location":{"$geoWithin":{"$box":[[-125.0,25.1],[-60.5,49.1]]}}}
over the REST API causes an error: Query contains unknown or unsupported operators: $box
The same query works fine in mongo shell. Is there a reason this operator is not supported?
Adding $box to the operators set in eve/io/mongo/mongo.py seems to fix the problem.
The text was updated successfully, but these errors were encountered:
Thank you for developing and maintaining Eve, a wonderful package.
A query such as: ?where={"user_location":{"$geoWithin":{"$box":[[-125.0,25.1],[-60.5,49.1]]}}}
over the REST API causes an error: Query contains unknown or unsupported operators: $box
The same query works fine in mongo shell. Is there a reason this operator is not supported?
Adding $box to the operators set in eve/io/mongo/mongo.py seems to fix the problem.
The text was updated successfully, but these errors were encountered: