auth
Example of custom directive for customDirective
descriptor.
See documentation
directive @auth(
requires: Roles = ADMIN
) on
| OBJECT
| FIELD_DEFINITION
Arguments
requires
● Roles
enum common
User role required for access. Default to ADMIN
.