QueryHandler
QueryHandler<
TInput,TOutput,TCurrent,TContext> = (input,current,ctx) =>Promise<TOutput>
Performs the read behavior of a Query and returns a result for the Runtime to marshal against the output declaration.
Type Parameters
Section titled “Type Parameters”TInput
Section titled “TInput”TInput = any
Parsed input shape; the compiler derives it from the input declaration.
TOutput
Section titled “TOutput”TOutput = any
Result shape; the compiler derives it from the output declaration.
TCurrent
Section titled “TCurrent”TCurrent = ReadAppInstance
App instance handed to the handler.
TContext
Section titled “TContext”TContext = ReadRuntimeInstance
Runtime instance handed to the handler.
Parameters
Section titled “Parameters”TInput
Input parsed against the Query’s input declaration.
current
Section titled “current”TCurrent
The App that declared the Query, with read access to its Items.
TContext
Read Runtime bound to the Workspace of the call.
Returns
Section titled “Returns”Promise<TOutput>
The result the Runtime checks against the output declaration.

