[DRIVERS-1928] Test behavior of empty projection in CRUD spec Created: 21/Sep/21  Updated: 31/Mar/22

Status: Backlog
Project: Drivers
Component/s: CRUD
Fix Version/s: None

Type: Task Priority: Unknown
Reporter: Julius Park (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Driver Changes: Needed

 Description   

Currently working on pymongo's behavior when given an empty projection (PYTHON-1853). Before this change, pymongo simply substituted in a projection of {"_id": 1} when no projection was given. We should consider adding tests to the CRUD spec to ensure all the drivers have the same behavior when given an empty projection.



 Comments   
Comment by Jeremy Mikola [ 21/Sep/21 ]

julius.park: Feel free to submit a PR if you'd like to contribute a test for this. I think it'd just be a matter of passing an empty document as an option to the operation and then asserting an empty document in the outgoing commandStartedEvent.

One open question: would this just be for find, or would you want to do it for the various findAndModify operations as well?

Generated at Thu Feb 08 08:24:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.