listStatements
Query statements by subject, predicate, kind and confidence — cursor-paged.
listStatements(query?: ListStatementsQuery): Promise<ListStatementsResult>listStatements(request: StatementListRequest): Promise<StatementView[]>
listStatementsFrames(request: StatementListRequest): Promise<StatementListResponseFrame[]>Parameters
ParameterTypeRequired
subjectstringoptionalEntity id.
predicatestringoptionalPredicate name, as the schema declares it.
kindFact | Preference | EventoptionalStatement kind.
minConfidencefloatoptionalFloor on confidence.
onlyCurrentbooleanoptionalOnly the head of each supersession chain. Without it you get every version — which is what you want for an audit and not for a read.
includeTombstonedbooleanoptionalDefaults to false.
limitintegeroptionalPage size.
cursorstring (wire: bytes)optionalCursor from the previous page.
Returns
FieldTypePresence
statementsStatementDetail[]alwaysThe page.
countintegeralwaysHow many are in this page.
nextCursorstringAbsent on the last page.
The wire request adds timeRangeStartUnixNanos and timeRangeEndUnixNanos,
which the HTTP tier does not expose.
On the wire
subject is UUID bytes and kind is an integer discriminant rather than a
string. evidence is a single reference, not an array of ids. Every request
carries a requestId plus an optional actAs.
See also
Was this page helpful?