-
Type: Bug
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
Query
-
ALL
I wanted to use the special $comment field with pymongo for adding generic information about what code triggered the query.
To do this you need to do collection.find(
{"$query": ..., "$comment": ...}).
But this breaks queries trying to count, always giving 0 as result.
Same goes for the cli.
This makes the usability of $comment much more complicated since you need to keep track of when your code might count on the cursor.
- duplicates
-
SERVER-6767 Interpret $query as special so you can copy profiler/logged queries into shell
- Closed