-
Type: New Feature
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.4.8
-
Component/s: None
-
2
-
Empty show more show less
collection.insert() and collection.update() both support a fullResult option which can return the writeResult for the operation.
Shouldn't collection.save() support the same flag because it is effectively a switch for insert() or update() based on the presence of an _id. This could allow downstream code to know if it was an upsert, or modify that occurred.