Type Alias UpdateFieldValueGetter<D>
UpdateFieldValueGetter: ( doc: firestore.QueryDocumentSnapshot<D>,) => [string | firestore.FieldPath, any, ...any[]] Type Parameters
- D = firestore.DocumentData
Type declaration
- (
doc: firestore.QueryDocumentSnapshot<D>,
): [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.