Skip to content

BaseOperationBuilder

Shared surface of the Mutation and Query builders.

MutationBuilder and QueryBuilder

readonly prn: string

Platform Resource Name of the declared resource, derived from the App key and resource key.

BaseBuilder.prn

addGrant(role): OperationGrant

Grants a Role permission to call this operation.

BaseRoleBuilder

Role permitted to call the operation.

OperationGrant

The Grant builder.

The Grant only permits the call. Inside the handler, Item and Property access is still checked against the caller’s Roles and Grants.

Granting a Mutation to administrators

closePayRun.addGrant(core.roles.admin);

Grant access


setDescription(description): this

Sets the description emitted into the definition and rendered in generated reference and application assets.

string

Human-readable description of the resource.

this

This builder for chaining.

BaseBuilder.setDescription