Fires2REST - v0.3.0
    Preparing search index...

    Interface DocumentSnapshot<T>

    A snapshot of a document at a point in time

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

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    createTime?: Date

    Time the document was created

    exists: boolean

    Whether the document exists

    id: string

    The document ID

    path: string

    The full document path

    updateTime?: Date

    Time the document was last updated

    Methods

    • The document data, or undefined if it doesn't exist

      Returns T

    • Get a specific field value

      Parameters

      • fieldPath: string

      Returns unknown