Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-3216

Multiple nin selection with id field produces unexpect result

    • Type: Icon: Task Task
    • Resolution: Done
    • 4.0.0 final
    • Affects Version/s: None
    • Component/s: None

      User.nin(name: ['foo']).union.nin(name: ['bar']) # produces { "name"=>{"$nin"=>["foo", "bar"]} }
      User.nin(id: ['foo']).union.nin(id: ['bar'])     # produces { "_id"=>{"$nin"=>["bar"]} }
      

            Assignee:
            arthurnn Arthur Nogueira Neves
            Reporter:
            HungYuHei HungYuHei [X]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: