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

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

    XMLWordPrintable

    Details

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

      Description

      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]}})

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: