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.
Remarks
Section titled “Remarks”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.
- QueryHandler
- ReadAppInstance.queries
- QueryBuilder for declaring a Query
Properties
Section titled “Properties”definition
Section titled “definition”
readonlydefinition:QueryDefinition
The compiled definition the handler was created from, including its Grants, input, and output.
handler
Section titled “handler”
readonlyhandler:QueryHandler
Invokes the Query with (input, current, ctx), applying Grant checks and input and output marshalling.
readonlyprn:string
PRN identifying this Query within the definition.

