Error on invalid query field names ($prefix)

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.2
    • Affects Version/s: 2.4.0
    • Component/s: Querying
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If an invalid field name is used in the query system then an error should occur.

      Current:

      > db.a.find({$a:1})
      >
      

      Expected:

      > db.a.find({$a:1})
      error: {
      	"$err" : "bad query: BadValue unknown top level operator: $a",
      	"code" : 16810
      }
      

              Assignee:
              Unassigned
              Reporter:
              Scott Hernandez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: