Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions