-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
As of now, the constructor for model::update_one requires a filter and update document. Because these two parameters are the same type switching them will result in a server error. Generally, this should be avoided (see Avoid adjacent parameters of the same type when changing the argument order would change meaning).
A simple solution could be to add a setter for the filter and/or the update value.