Details
-
Improvement
-
Resolution: Unresolved
-
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.