Skip to content

Commit 6a7ad78

Browse files
authored
Adds @aws_lambda directive
1 parent f16a163 commit 6a7ad78

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- **core**: BREAKING - `diff` is now async
66
- **core**: Adds `considerUsage` rule
77
- **core**: Fixes missing names of default root types
8+
- **cli**, **ci**: Adds `@aws_lambda` directive
89

910
### v2.9.0
1011

packages/core/__tests__/validate/aws.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('aws', () => {
2929

3030
const schema = await new LoadersRegistry().loadSchema(
3131
/* GraphQL */ `
32-
type AWS_Data {
32+
type AWS_Data @aws_lambda {
3333
normalScalar: String
3434
date: AWSDate!
3535
time: AWSTime!
@@ -43,17 +43,15 @@ describe('aws', () => {
4343
}
4444
4545
type Query {
46-
data: AWS_Data
46+
data: AWS_Data @aws_lambda
4747
}
4848
`,
4949
{},
5050
false,
5151
true,
5252
);
5353

54-
const results = validate(schema, [new Source(print(doc))], {
55-
// aws: true,
56-
});
54+
const results = validate(schema, [new Source(print(doc))]);
5755

5856
expect(results).toHaveLength(0);
5957
});

packages/loaders/loaders/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export class LoadersRegistry {
8888
directive @aws_cognito_user_pools(
8989
cognito_groups: [String!]
9090
) on FIELD_DEFINITION | OBJECT
91+
directive @aws_lambda on FIELD_DEFINITION | OBJECT
9192
`),
9293
],
9394
}

0 commit comments

Comments
 (0)