An abstract base class extended on both the client and server which defines how Documents are retrieved, created, updated, and deleted.

Hierarchy (View Summary)

Methods

  • Describe the scopes which are suitable as the namespace for a flag key

    Returns string[]

  • Describe the scopes which are suitable as the namespace for a flag key

    Returns string[]

  • Protected

    Log a database operations message.

    Parameters

    • level: string

      The logging level

    • message: string

      The message

    Returns void

  • Protected

    Log a database operation for an embedded document, capturing the action taken and relevant IDs

    Parameters

    • action: string

      The action performed

    • type: string

      The document type

    • documents: Document[]

      The documents modified

    • Optionalcontext: {
          level?: string;
          pack?: string;
          parent?: Document<object, DocumentConstructionContext>;
      } = {}

      The context of the log request

      • Optionallevel?: string

        The logging level

      • Optionalpack?: string

        A compendium pack within which the operation occurred

      • Optionalparent?: Document<object, DocumentConstructionContext>

        A parent document

    Returns void