We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2fff0c commit 4c042b2Copy full SHA for 4c042b2
packages/firestore/src/lite-api/reference.ts
@@ -93,10 +93,12 @@ export type UpdateData<T> = T extends Primitive
93
*
94
* @param merge - Changes the behavior of a `setDoc()` call to only replace the
95
* values specified in its data argument. Fields omitted from the `setDoc()`
96
- * call remain untouched.
+ * call remain untouched. If your input sets any field to an empty map, all
97
+ * nested fields are overwritten.
98
* @param mergeFields - Changes the behavior of `setDoc()` calls to only replace
99
* the specified field paths. Any field path that is not specified is ignored
- * and remains untouched.
100
+ * and remains untouched. If your input sets any field to an empty map, all
101
102
*/
103
export type SetOptions =
104
| {
0 commit comments