prorm API Reference
    Preparing search index...

    Interface DgraphStoreOptions

    Connection options for DgraphStore.

    interface DgraphStoreOptions {
        address?: string;
        client?: DgraphClientLike;
    }
    Index
    address?: string

    Dgraph Alpha gRPC address, e.g. 'localhost:9080'.

    client?: DgraphClientLike

    A pre-built dgraph-js DgraphClient (or a compatible mock). When provided, connect() uses it directly and skips require('dgraph-js') entirely — this is how tests inject a mock without the real driver installed.