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

chaining where clauses on same attribute overrides previous arguments

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Hi, I'd expect a 1 or 0 from this query:
      User.where(_id: '4dd227e3e8e687ca63000009').and(:_id.in =>
      user.admin_ids).size
      => 3

      Is this by design? Thank you for any hints on this!
      --Frank

            Assignee:
            Unassigned Unassigned
            Reporter:
            fwoeck fwoeck
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: