Details
-
Bug
-
Resolution: Won't Do
-
Major - P3
-
None
-
None
-
Query
-
ALL
Description
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.
Attachments
Issue Links
- duplicates
-
SERVER-6767 Interpret $query as special so you can copy profiler/logged queries into shell
-
- Closed
-