Skip to content

.or with interval and on same field not working #93

@arthurnn

Description

@arthurnn

https://github.com/mongoid/mongoid/issues/3110 reported this issue.

Which basically this query:

query.or({:first.gt => 1, :first.lte => 3}, {:first.gt => 20, :first.lte => 30 })

is returning this selector

[{"first"=>{"$lte"=>3}}, {"first"=>{"$lte"=>30}}]

Which is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions