Closed humanbagel closed 11 years ago
In the docs for negation, the example given is
queryable.not.gt(age: 50) queryable.selector #=> { "age" => { "$not" => { "$gt" => 50 }}}
However here's what I get (on origin 1.0.11 and mongoid 3.0.19)
Person.not.gt(age: 50).selector #=> {"age"=>{"$gt"=>50}} Person.not.lte(age: 50).selector #=> {"age"=>{"$lte"=>50}}
However, negation of "in" works:
Person.not.in(email_address: "me@me.com").selector #=> {"email_address"=>{"$not"=>{"$in"=>["me@me.com"]}}}
Closing this ticket for now, as pr #73 should fix it.
thanks for the report.
In the docs for negation, the example given is
However here's what I get (on origin 1.0.11 and mongoid 3.0.19)
However, negation of "in" works: