File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ public FieldMask getFieldMask() {
59
59
60
60
/**
61
61
* Changes the behavior of {@code set()} calls to only replace the values specified in its data
62
- * argument. Fields omitted from the {@code set()} call will remain untouched.
62
+ * argument. Fields omitted from the {@code set()} call will remain untouched. If your input sets
63
+ * any field to an empty map, all nested fields are overwritten.
63
64
*/
64
65
@ NonNull
65
66
public static SetOptions merge () {
@@ -68,7 +69,8 @@ public static SetOptions merge() {
68
69
69
70
/**
70
71
* Changes the behavior of {@code set()} calls to only replace the given fields. Any field that is
71
- * not specified in {@code fields} is ignored and remains untouched.
72
+ * not specified in {@code fields} is ignored and remains untouched. If your input sets any field
73
+ * to an empty map, all nested fields are overwritten.
72
74
*
73
75
* <p>It is an error to pass a {@code SetOptions} object to a {@code set()} call that is missing a
74
76
* value for any of the fields specified here.
You can’t perform that action at this time.
0 commit comments