Oracle® Backend For Firebase JavaScript Namespace SDK Reference, Release 26.1.0
    Preparing search index...
    Oracle® Backend For Firebase JavaScript Namespace SDK Reference
    Release 26.1.0

    G48197-02

    DualityViewDocReference - Represents a reference to a duality view document.

    Type Parameters

    • T = any
    Index

    Constructors

    Properties

    id: string
    oracledb: Oracledb
    path: string

    The path of the document.

    type: "dualityviewdocument"

    Methods

    • Deletes the document referred by this.

      Parameters

      • Optionaltrans_obj: any

        Transaction object.

      Returns Promise<void>

    • Reads the document for this reference.

      Parameters

      • Optionaloptions: { source: "server" }

        Options for the get operation.

      • Optionaltrans_obj: any

        Transaction object.

      Returns Promise<DocumentSnapshot<T>>

    • Writes to the document.

      Parameters

      • data: T

        The data to set.

      • OptionalsetOptions: { merge?: boolean; mergeFields?: (string | FieldPath)[] }

        Options for set.

      • Optionaltrans_obj: any

        Transaction object.

      Returns Promise<void>

    • Updates fields for the document referred by this.

      Parameters

      • data: Partial<T> | { [key: string]: any }

        The data to update.

      • Optionaltrans_obj: any

        Transaction object.

      Returns Promise<void>

    • Updates specific fields for the document.

      Parameters

      • field: string | FieldPath

        The field to update.

      • value: any

        The value.

      • ...moreFieldsAndValues: any[]

        More fields and values.

      Returns Promise<void>

    • Applies a custom data converter to this reference.

      Type Parameters

      • U

      Parameters

      • converter: any

        The converter.

      Returns DualityViewDocReference<U>