Remove un-intuitive command-builder API for .find() in the shell

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Now that the mongo shell is primarily a test driver, we should remove the foot-gun for testing engineers which expect

      myCollection.find({example: "query"});
      

      to actually issue a command to the database. Many tests do this and expect to see some side-effects like a log statement, profiler entry, etc.

      Let's investigate our options for making it more obvious that your query is not doing anything, or harder to do unintentionally.

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Charlie Swanson
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: