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
-
- ServerFunctionRef<
I, O>
- ServerFunctionRef<
Methods
-
read(
RpcClient rpc, I input, {required List< String> scope, QueryPolicy policy = const QueryPolicy()}) → QueryOptions<O> -
Available on ServerFunctionRef<
Snapshots this input with this ref's codec and the client's serializer.I, O> , provided by the RpcReadOptions extension -
readAt(
RpcClient rpc, I input, {required List< String> scope}) → QueryFilter -
Available on ServerFunctionRef<
Selects one ordinary read by its canonical encoded input.I, O> , provided by the RpcReadOptions extension -
reads(
RpcClient rpc, {required List< String> scope}) → QueryFilter -
Available on ServerFunctionRef<
Selects this function's ordinary reads in one account/backend scope.I, O> , provided by the RpcReadOptions extension