Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21334

find command should prohibit $-options

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

      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:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: