Optional
Readonly
merge?: booleanOptional
Readonly
mergeChanges the behavior of a set() call to only replace the values specified in its data argument. Fields omitted from the set() call remain untouched. If your input sets any field to an empty map, all nested fields are overwritten.
Changes the behavior of set() calls to only replace the specified field paths. Any field path that is not specified is ignored and remains untouched. If your input sets any field to an empty map, all nested fields are overwritten.
Generated using TypeDoc
An options object that configures the behavior of
set()
calls inDocumentReference
,WriteBatch
andTransaction
. These calls can be configured to perform granular merges instead of overwriting the target documents in their entirety.