Cannot use $query together with $comment

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Query
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Backlog - Query Team (Inactive)
              Reporter:
              Johnny Boy
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: