This will set the fields specified in $setOnInsert:
{<fields>}if the update results in an insert. It does nothing if any existing documents are updated.
- depends on
-
SERVER-6399 Refactor update() code
- Closed
- is duplicated by
-
SERVER-453 $iset - set fields only on insert when upserting
- Closed
-
SERVER-3440 Add $setOnInsert command
- Closed
-
SERVER-4900 $ifnotpresent
- Closed
- is related to
-
SERVER-7894 A $setOnChange command would be very helpful
- Closed
- related to
-
CSHARP-684 Add new features to Update builder for server 2.4
- Closed
(1 related to)