$elemMatch with nested $all is not reparseable

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      db.c.find({x: {$elemMatch: {$all: [3, 5]}}}) 

      parses into 

      db.c.find({x: {$elemMatch: {$and: [{$eq: 3}, {$eq: 5}]}}}) 

      which is not a reparseable query ("unknown top level operator: $eq. If you have a field name that starts with a '$' symbol, consider using $getField or $setField.").

              Assignee:
              Jess Balint
              Reporter:
              Alyssa Clark
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: