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