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

    Represents a bulk update operation on a collection.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Creates a new BulkUpdate instance.

      Parameters

      • db: Oracledb

        Database instance.

      • path: string

        Path to the collection for bulk update.

      Returns BulkUpdate

    Properties

    path: string

    Returns the path of the collection.

    Methods

    • Checks whether this BulkUpdate is equal to the provided one.

      Parameters

      • other: BulkUpdate

        BulkUpdate that needs to be compared.

      Returns boolean

      true if both BulkUpdate instances are the same.

    • Updates fields for the documents in the collection that match the where conditions.

      Parameters

      • data: Object

      Returns Promise<void>

    • Updates fields for the documents in the collection that match the where conditions.

      Parameters

      • field: string | FieldPath
      • value: any
      • ...fieldValues: any[]

      Returns Promise<void>

    • Adds a condition to filter documents for the bulk update.

      Parameters

      • field: string | FieldPath

        Field name.

      • opStr: string

        Operator to be used with where. "==", ">=", "<=", "<", ">", "in", "not-in", "like", "!=", "array-contains", "array-contains-any", "is-null" (supported operators)

      • fieldValue: any

        Value to be used while applying operator.

      Returns BulkUpdate

      this BulkUpdate instance for chaining.