Skip to content

Commit

Permalink
docs: improve documentation for merge behavior (#5828)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt-sebastian committed Dec 22, 2021
1 parent c2fff0c commit 4c042b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/firestore/src/lite-api/reference.ts
Expand Up @@ -93,10 +93,12 @@ export type UpdateData<T> = T extends Primitive
*
* @param merge - Changes the behavior of a `setDoc()` call to only replace the
* values specified in its data argument. Fields omitted from the `setDoc()`
* call remain untouched.
* call remain untouched. If your input sets any field to an empty map, all
* nested fields are overwritten.
* @param mergeFields - Changes the behavior of `setDoc()` calls to only replace
* the specified field paths. Any field path that is not specified is ignored
* and remains untouched.
* and remains untouched. If your input sets any field to an empty map, all
* nested fields are overwritten.
*/
export type SetOptions =
| {
Expand Down

0 comments on commit 4c042b2

Please sign in to comment.