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

the query for collection with "query" field didn't work as expected

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.7
    • Component/s: Querying
    • Labels:
      None

      we have query
      db.meta.things.find({query:"1"})
      we have a data
      when we run

      db.meta.things.find({query:{$in:[1,2]}})

      error: {
      	"$err" : "Can't canonicalize query: BadValue unknown top level operator: $in",
      	"code" : 17287
      }
      

      so it is the same as if i run
      db.meta.things.find({$query:{$in:[1,2]}})

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            vedmalex Alex Vedmedenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: