Skip to content

QueryHandlerInstance

Exposes a Query on an App so that application code can invoke it with the same Grant checks, input parsing, and output marshalling the platform applies.

Calling handler asserts the Query’s Grants against the active context, parses the input against the declared input definition, runs the application handler, and marshals its result against the declared output. Reach a Query through ctx.apps.<app>.queries.<key> inside a read or write execution.

readonly definition: QueryDefinition

The compiled definition the handler was created from, including its Grants, input, and output.


readonly handler: QueryHandler

Invokes the Query with (input, current, ctx), applying Grant checks and input and output marshalling.


readonly prn: string

PRN identifying this Query within the definition.