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

Support logical operators under $elemMatch when embedded matching

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0.rc1
    • Affects Version/s: None
    • Component/s: Query
    • None
    • Minor Change

      MongoDB server allows $elemMatch value to contain logical operators $and/$or/$nor. This is not explicitly documented in the server manual but I've tested it and it does work.

      This ticket is for adding equivalent support for Mongoid embedded matching.

      https://github.com/mongodb/mongoid/pull/4656 is a PR using the 7.0 code base that contributes this support.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: