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

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.6.7
    • Component/s: Querying
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Alex Vedmedenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: