If the query starts with [$]query (like db.coll.find({$query:{...}})) then we should set the _special boolean to true. This will allow running this:
db.coll.find({$query:...}).explain()
- is duplicated by
-
SERVER-8447 $query with count and $hint not behaving the same as count() and hint() of cursor
- Closed
-
SERVER-10079 Cannot use $query together with $comment
- Closed
-
SERVER-10352 doing explain on $query on the shell returns error 'bad query'
- Closed
-
SERVER-14091 $query unsupported operator
- Closed
-
SERVER-14564 explain() doesn't work with $min / $max
- Closed
-
SERVER-17004 shell should raise a useful error on mixed usage of $query document with .explain()
- Closed
-
SERVER-17928 choosing query field in system.profile
- Closed
-
SERVER-24341 Find on admin.$cmd.sys.inprog asserts on top-level $query field
- Closed
- related to
-
SERVER-8025 shell supports "query" works as a meta-operator - only "$query" should be supported
- Closed
-
SERVER-9812 User query is interpreted incorrectly if the first field is "query"
- Closed
-
SERVER-17171 the query for collection with "query" field didn't work as expected
- Closed
-
SERVER-6768 MongoDB Profiler creates illegal documents
- Closed