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

Multiple nin selection with id field produces unexpect result

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.0.0 final
    • Component/s: None
    • Labels:

      Description

      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"]} }
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: