prorm API Reference
    Preparing search index...

    Class FlureeStore

    FlureeStore wraps Fluree's HTTP query/transact API behind the shared ledger surface.

    Implements

    Index
    name: "fluree" = 'fluree'

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

    library: "fetch" = 'fetch'

    The client library being used

    • Append data to collection as a transaction (POST .../transact). Returns the transaction response (block, flakes, temp-id map, and the block hash that anchors the write into the immutable log).

      Parameters

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

      Returns Promise<unknown>

    • Read subject id from collection (POST .../query).

      Parameters

      • collection: string
      • id: string | number

      Returns Promise<unknown>

    • Return the flake-level history of subject id (POST .../history).

      Parameters

      • collection: string
      • id: string | number

      Returns Promise<unknown>

    • Return the provenance/proof for subject id: its history with block metadata (meta: true), so callers see the block hash and instant that cryptographically anchor each revision into Fluree's tamper-evident log.

      Parameters

      • collection: string
      • id: string | number

      Returns Promise<unknown>

    • Run a raw FlureeQL query object (POST .../query).

      Parameters

      • flureeql: unknown

      Returns Promise<unknown>

    • Run a raw FlureeQL transaction (POST .../transact).

      Parameters

      • transaction: unknown

      Returns Promise<unknown>