Represents a set of database operations for a document database.

Implements

Constructors

Properties

_sources: Record<string, ZDataSourceStatic<any>> = {}
_staticOptions: IZDataSourceStaticOptions<unknown> = ...

Methods

  • Updates fields in the database.

    Type Parameters

    • T

    Parameters

    • source: string

      The source to update.

    • template: Partial<T>

      The partial template that contains the fields to update.

    • Optional scope: IZFilter

      The scope to filter to. If this is undefined, then all documents are updated.

    Returns Promise<number>

    The total number of documents updated.

Generated using TypeDoc