RESTClientStore: BaseStore<R> & Loads<R> & Lists<R> & Filters<R> & Writes<R> & Removes<
    R,
> & Counts<R> & Searches<R> & DocumentSearches<R> & Partial<Aggregates<R>> & Partial<
    Calc<R>,
> & Exists<R> & Resolves & Statements<R> & {
    facetableFields: (
        typeName: string,
    ) => NonNullable<GraviolaTypeCapabilities["facets"]>;
    findDocumentsByAuthorityIRI: (
        typeName: string,
        authorityIRI: string,
        repositoryIRI?: string,
        limit?: number,
    ) => Promise<EntityOf<R, keyof R & string>[]>;
}

Type Parameters

  • R extends SchemaRegistry = SchemaRegistry

Type declaration

  • facetableFields: (typeName: string) => NonNullable<GraviolaTypeCapabilities["facets"]>

    Facetable fields advertised in the handshake for a type.

  • findDocumentsByAuthorityIRI: (
        typeName: string,
        authorityIRI: string,
        repositoryIRI?: string,
        limit?: number,
    ) => Promise<EntityOf<R, keyof R & string>[]>

    Resolve local entities by secondary authority identifier (GET /{type}/_by-authority). Falls back to filterMany on sameAs when the dedicated route is unavailable.