Type Alias MigrationPredicate<D>

MigrationPredicate: (doc: firestore.QueryDocumentSnapshot<D>) => boolean

A function that takes a document snapshot and returns a boolean indicating whether to migrate it.

Type Parameters

  • D = firestore.DocumentData

Type declaration

    • (doc: firestore.QueryDocumentSnapshot<D>): boolean
    • Parameters

      • doc: firestore.QueryDocumentSnapshot<D>

      Returns boolean