Type alias UpdateFieldValueGetter<D>
UpdateFieldValueGetter<D>: ((doc) => [string | firestore.FieldPath, any, ...any[]])
Type Parameters
D = firestore.DocumentData
Type declaration
- (doc): [string | firestore.FieldPath, any, ...any[]]
Parameters
doc: firestore.QueryDocumentSnapshot<D>
Returns [string | firestore.FieldPath, any, ...any[]]
A function that takes a document snapshot and returns an alternating list of field paths and values to update within that document, optionally followed by a Precondition to enforce on the update.