TrustedQueries

The queries of trusted code (NodeQueryApi.trusted): no tenant restricts them, so a state is read by its ref alone (SnapshotQueries). unbounded lifts the in-process budget for a job that must read everything.

Functions

Link copied to clipboard
inline fun <reified S : Any> TrustedQueries.snapshots(): SnapshotQueries<S>

The snapshots of the aggregate whose state is S, as trusted code; see QueryModels.snapshots.

Link copied to clipboard
abstract fun unbounded(): TrustedQueries

These queries without a budget: no list, page or count bound, exact counts; only the in-process timeout (wow.query.unbounded-timeout) applies. For jobs that read a whole model, not for anything a request drives.