find command should prohibit $-options

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query Optimization
    • QuInt E (01/11/16), Query F (02/01/16)
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It seems to me that this should cause an error, to protect against driver or application bugs:

      > db.runCommand({find: 'collection', $orderby: {i: 1}})
      

            Assignee:
            [DO NOT USE] Backlog - Query Optimization
            Reporter:
            A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: