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; revealed returns the raw DISPLAY values the queries mask otherwise. Each keeps the other: revealed().unbounded() and unbounded().revealed() are the same queries.

Wow implements it and an application calls it: implementing it needs an opt-in to InternalWowApi, which an application does not give, so members may be added in a minor release.

Functions

Link copied to clipboard
abstract fun revealed(): TrustedQueries

These queries returning the raw value of every @Sensitive(DISPLAY) field, which every other query masks: the service's own read of a value it must use, asked in so many words, because the result of a trusted read often goes straight into a response, where a default would leak the field the day it is marked DISPLAY. Every CONFIDENTIAL value is still masked, and so is a state of an aggregate's history; a custom mask strategy is not asked for a revealed value. A dataset's DISPLAY columns are revealed alike. Never hand these to a caller: a caller's queries (QueryApi.of) have no such member.

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.