Fires2REST - v0.3.0
    Preparing search index...

    Interface QueryDocumentSnapshot<T>

    A snapshot of a document in a query result (always exists)

    interface QueryDocumentSnapshot<T = DocumentData> {
        createTime?: Date;
        exists: true;
        id: string;
        path: string;
        updateTime?: Date;
        data(): T;
        get(fieldPath: string): unknown;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    createTime?: Date

    Time the document was created

    exists: true

    Always true for query document snapshots

    id: string

    The document ID

    path: string

    The full document path

    updateTime?: Date

    Time the document was last updated

    Methods

    • Get a specific field value

      Parameters

      • fieldPath: string

      Returns unknown