prorm API Reference
    Preparing search index...

    Class TerminusdbStore

    TerminusdbStore wraps a WOQLClient behind the shared ledger surface.

    Implements

    Index
    name: "terminusdb" = 'terminusdb'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "@terminusdb/terminusdb-client" = '@terminusdb/terminusdb-client'

    The client library being used

    • Insert data as a new document of type table (a new commit). Returns whatever addDocument reports (typically the inserted document id(s)).

      Parameters

      • table: string
      • data: Record<string, unknown>

      Returns Promise<unknown>

    • Fetch the current revision of document <table>/<id>.

      Parameters

      • table: string
      • id: string

      Returns Promise<unknown>

    • Return the commit history for document <table>/<id> via a WOQL query over the commit graph. Every past revision lives in the immutable commit chain, so this surfaces the document's provenance.

      Parameters

      • table: string
      • id: string

      Returns Promise<unknown>

    • Verify document <table>/<id> by reading it back from the immutable store. Returns { id, exists, document } - existence in the commit graph is the provenance guarantee (TerminusDB never mutates past commits).

      Parameters

      • table: string
      • id: string

      Returns Promise<{ id: string; exists: boolean; document: unknown }>

    • Run a raw WOQL query object.

      Parameters

      • woql: unknown
      • OptionalcommitMsg: string

      Returns Promise<unknown>