Allow Decorator
Allow
Attaches metadata to the resolver defining which permissions are required to execute the operation, using one or more Permission values. Can be applied to top-level queries and mutations as well as field resolvers.
Example
@Allow(Permission.SuperAdmin)
@Query()
getAdministrators() {
// ...
}