Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't canonicalize query :: caused by :: unknown operator: $maxDistance #258

Open
shiva6318 opened this issue Apr 28, 2023 · 0 comments
Open

Comments

@shiva6318
Copy link

shiva6318 commented Apr 28, 2023

when iam using mongdb-erlang query as
#{<<"$near">> => #{<<"$geometry">> => #{<<"type">> => <<"Point">>, <<"coordinates">> => [Long,Lat]}},<<"$maxDistance">> => 1000 }.
Iam getting error as Can't canonicalize query :: caused by :: unknown operator: $maxDistance .
if i use query without $maxDistance field then query is executed.
Can anyone help how to use $maxDistance in mongodb-erlang query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant