An options object that configures the behavior ofset() calls inDocumentReference,WriteBatch andTransaction. These calls can beconfigured to perform granular merges instead of overwriting the targetdocuments in their entirety by providing aSetOptions withmerge: true.
Index
Properties
Properties
Optional merge
Changes the behavior of a set() call to only replace the values specifiedin its data argument. Fields omitted from the set() call remainuntouched.
Optional mergeFields
Changes the behavior of set() calls to only replace the specified fieldpaths. Any field path that is not specified is ignored and remainsuntouched.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.