File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
source/reference/operator Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ $unset
14
14
db.collection.update( { field: value1 }, { $unset: { field1: "" } } );
15
15
16
16
The above example deletes ``field1`` in ``collection`` from
17
- documents where ``field`` has a value of ``value1``. The value of
18
- specified for the value of the field in the :operator:`$unset` statement
19
- (i.e. ``""`` above,) does not impact the operation.
17
+ documents where ``field`` has a value of ``value1``. The value of the field
18
+ in the :operator:`$unset` statement (i.e. ``""`` above) does not impact
19
+ the operation.
20
20
21
21
If documents match the initial query (e.g. ``{ field: value1 }``
22
22
above) but do not have the field specified in the :operator:`$unset`
23
- operation, (e.g. ``field1``) there the statement has no effect on
23
+ operation (e.g. ``field1``), then the statement has no effect on
24
24
the document.
You can’t perform that action at this time.
0 commit comments