QueryDefinition
Describes one Query: its access Grants, input and output contracts, and the handler that performs the read.
- QueryBuilder for declaring a Query
- QueryHandlerInstance for invoking the Query inside an execution
Properties
Section titled “Properties”description
Section titled “description”
readonlydescription:string|undefined
Description set with setDescription, or undefined.
grants
Section titled “grants”
readonlygrants:GrantDefinition[]
Roles allowed to run the Query; a principal needs any one of them.
handler
Section titled “handler”
readonlyhandler:QueryHandler
The function the Runtime calls with parsed input.
readonlyinput:InputDefinition
Input contract, or null when the Query takes no input.
readonlykey:string
Key of the Query, unique within its App.
method
Section titled “method”
readonlymethod:QueryMethod
HTTP method set with setMethod, GET by default.
output
Section titled “output”
readonlyoutput:OutputDefinition
Output contract, or null when the Query returns nothing.
readonlyprn:string
PRN of the Query, prn::<app>:query/<key>.

