Skip to content

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

@shiva6318

Description

@shiva6318

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions