|
@@ -6,8 +6,11 @@ export const PERMISSIONS_METADATA_KEY = '__permissions__';
|
|
|
/**
|
|
/**
|
|
|
* @description
|
|
* @description
|
|
|
* Attaches metadata to the resolver defining which permissions are required to execute the
|
|
* Attaches metadata to the resolver defining which permissions are required to execute the
|
|
|
- * operation, using one or more {@link Permission} values. Can be applied to top-level queries
|
|
|
|
|
- * and mutations as well as field resolvers.
|
|
|
|
|
|
|
+ * operation, using one or more {@link Permission} values.
|
|
|
|
|
+ *
|
|
|
|
|
+ * In a GraphQL context, it can be applied to top-level queries and mutations as well as field resolvers.
|
|
|
|
|
+ *
|
|
|
|
|
+ * For REST controllers, it can be applied to route handlers.
|
|
|
*
|
|
*
|
|
|
* @example
|
|
* @example
|
|
|
* ```TypeScript
|
|
* ```TypeScript
|