firewalk
    Preparing search index...

    Type Alias UpdateFieldValueGetter<AppModelType, DbModelType>

    UpdateFieldValueGetter: (
        doc: firestore.QueryDocumentSnapshot<AppModelType, DbModelType>,
    ) => [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.

    Type Parameters

    • AppModelType = firestore.DocumentData
    • DbModelType extends firestore.DocumentData = firestore.DocumentData

    Type declaration

      • (
            doc: firestore.QueryDocumentSnapshot<AppModelType, DbModelType>,
        ): [string | firestore.FieldPath, any, ...any[]]
      • Parameters

        Returns [string | firestore.FieldPath, any, ...any[]]