Skip to content

$box operator causes error, while query works fine on mongo shell #1122

Description

@rajesh-krishnan

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions