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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Execution

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: