Directives Reference

WunderGraph Directives Reference

@fromClaim directive

Inject Claims into Variables

@jsonSchema directive

Apply JSON Schema validation

@hooksVariable directive

Define variables for Hooks

@rbac directive

Configure RBAC

@injectGeneratedUUID directive

Inject generated UUIDs

@injectCurrentDateTime directive

Inject Date / Time into variables

@injectEnvironmentVariable directive

Inject Environment Variables

@internalOperation directive

Hide Operations from the public API

@export directive

Export a field value into Variables

@internal directive

Hide a variable from the external API

@transform directive

Lodash style response transformations

Was this article helpful to you?
Provide feedback

Edit this page