Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-98935

$elemMatch with nested $all is not reparseable

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

      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:
            chii.huang@mongodb.com Chi-I Huang
            Reporter:
            alyssa.clark@mongodb.com Alyssa Clark
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: