-
Type: Task
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
-
Developer Tools
Mongo shell helpers silently accept invalid options
MongoDB Enterprise > db.inventory.find({"item": "canvas"}, {_id: 0}, {dummyOption: true}) { "item" : "canvas", "qty" : 100, "tags" : [ "cotton" ], "size" : { "h" : 28, "w" : 35.5, "uom" : "cm" } }
In other environments or drivers such as the Python one, that would have resulted in an error
TypeError: find() got an unexpected keyword argument 'dummyOption'
- is duplicated by
-
MONGOSH-1619 mongosh should warn when redacting command options
- Closed
- related to
-
NODE-5510 Do not silently filter out $changeStream stage options when building a change stream cursor via the watch() API
- Backlog