list_statements
Query statements by subject, predicate, kind and confidence — cursor-paged.
async fn list_statements(&self, query: &ListStatementsQuery) -> Result<ListStatementsResult, BrainHttpError>async fn list_statements(&self, request: &StatementListRequest) -> Result<Vec<StatementView>>
async fn list_statements_frames(&self, request: &StatementListRequest) -> Result<Vec<StatementListResponseFrame>>Parameters
ParameterTypeRequired
subjectstringoptionalEntity id.
predicatestringoptionalPredicate name, as the schema declares it.
kindFact | Preference | EventoptionalStatement kind.
min_confidencefloatoptionalFloor on confidence.
only_currentbooleanoptionalOnly 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.
include_tombstonedbooleanoptionalDefaults to false.
limitintegeroptionalPage size.
cursorstring (wire: bytes)optionalCursor from the previous page.
Returns
FieldTypePresence
statementsStatementDetail[]alwaysThe page.
countintegeralwaysHow many are in this page.
next_cursorstringAbsent 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?