Mixed $ and non-$ query operators shouldn't be prohibited

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.5.2
    • Affects Version/s: 1.5.0
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Introduced in CDRIVER-1692 circa commit 971af90ac2. Valid queries that mix $ and non-$ operators are prohibited, but they shouldn't be. An example of such a query is:

      {"$or":[{"field1":1},{"field2":2}], "field3":3}
      

      This results in cursor failure:

      Cannot mix top-level query with dollar keys such as $orderby.
      Use {$query: {},...} instead.
      

            Assignee:
            A. Jesse Jiryu Davis
            Reporter:
            A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: