|
There are currently 1,000+ lines of code in the x/mongo/driver/operation package strictly for setting fields on operation structs. That code provides no increase in usability but is a maintenance burden whenever we need to update operations. We should remove all setters on operation structs and define operations as struct literals instead.
Definition of done:
- Remove all field setters from the operation types in the x/mongo/driver/operation package.
- Mark all field setters as deprecated in the v1 branch.
|