-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
@aws-cdk/aws-appsyncRelated to AWS AppSyncRelated to AWS AppSynceffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.in-progressThis issue is being actively worked on.This issue is being actively worked on.p2
Description
Supporting directives for types and fields:
- basic directives:
@include,@deprecated,@skip - appsync auth directives:
@iam,@api_key, etc.
Use Case
Directives are a core feature of graphql.
Proposed Solution
/**
* Directives for types
*
* i.e. @aws_iam or @aws_subscribe
*/
export class Directive {
/**
* Add the @aws_iam directive
*/
public static iam(): Directive{
return new Directive('@aws_iam');
}
...
/**
* Add a custom directive
*
* @param statement - the directive statement to append
*/
public static custom(statement: string): Directive {
return new Directive(statement);
}
/**
* the directive statement
*/
public readonly statement: string;
private constructor(statement: string) { this.statement = statement; }
}Directives can be attached to fields or types.
Other
- 👋 I may be able to implement this feature request
-
⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-appsyncRelated to AWS AppSyncRelated to AWS AppSynceffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.in-progressThis issue is being actively worked on.This issue is being actively worked on.p2