Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add @aws_lambda to GQL transformer pass through directive list #7757

Merged
merged 1 commit into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/graphql-transformer-core/src/GraphQLTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export class GraphQLTransform {
aws_api_key: true,
aws_iam: true,
aws_oidc: true,
aws_lambda: true,
aws_cognito_user_pools: true,
deprecated: true,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class TransformFormatter {
kind: 'Document',
definitions: Object.keys(ctx.nodeMap).map((k: string) => ctx.getType(k)),
},
['aws_subscribe', 'aws_auth', 'aws_api_key', 'aws_iam', 'aws_oidc', 'aws_cognito_user_pools', 'deprecated']
['aws_subscribe', 'aws_auth', 'aws_api_key', 'aws_iam', 'aws_oidc', 'aws_cognito_user_pools', 'aws_lambda', 'deprecated'],
);
const SDL = print(astSansDirectives);
return SDL;
Expand Down
1 change: 1 addition & 0 deletions packages/graphql-transformer-core/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ directive @aws_api_key on FIELD_DEFINITION | OBJECT
directive @aws_iam on FIELD_DEFINITION | OBJECT
directive @aws_oidc on FIELD_DEFINITION | OBJECT
directive @aws_cognito_user_pools(cognito_groups: [String!]) on FIELD_DEFINITION | OBJECT
directive @aws_lambda on FIELD_DEFINITION | OBJECT

# Allows transformer libraries to deprecate directive arguments.
directive @deprecated(reason: String) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION | ENUM | ENUM_VALUE
Expand Down