RpcReadOptions<I, O> extension

Explicitly declares a server function safe for Query retries and refetches.

The application owns RpcClient per account/backend and supplies a stable cache scope. Its headers provider must never consult a global active account. The scope contains identity, not credentials or mutation serialization scope.

on

Methods

read(RpcClient rpc, I input, {required List<String> scope, QueryPolicy policy = const QueryPolicy()}) → QueryOptions<O>

Available on ServerFunctionRef<I, O>, provided by the RpcReadOptions extension

Snapshots this input with this ref's codec and the client's serializer.
readAt(RpcClient rpc, I input, {required List<String> scope}) → QueryFilter

Available on ServerFunctionRef<I, O>, provided by the RpcReadOptions extension

Selects one ordinary read by its canonical encoded input.
reads(RpcClient rpc, {required List<String> scope}) → QueryFilter

Available on ServerFunctionRef<I, O>, provided by the RpcReadOptions extension

Selects this function's ordinary reads in one account/backend scope.