@jiway/firestorm-core - v1.1.1
    Preparing search index...

    Interface DocumentChange<T_model>

    Base interface for a document change

    interface DocumentChange<T_model extends IFirestormModel> {
        document: FirestoreDocument;
        id: string;
        index: number;
        model: T_model | null;
        previousIndex: number;
        type: DocumentChangeType;
    }

    Type Parameters

    Index

    Properties

    The document as it is in the DB or local cache

    id: string

    Id of the document

    index: number

    The current index of the document in your query

    model: T_model | null

    The model of the document

    previousIndex: number

    The previous index of the documnet in your query

    The type of change this document received