Skip to content

Commit b34cc92

Browse files
committed
[UPDATED] schema example
1 parent aa2c162 commit b34cc92

5 files changed

+7
-22
lines changed

graphqlapi_introspection_query_resolver_limits.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/translator/input/graphqlapi_introspection_query_resolver_limits.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ Resources:
44
Type: AWS::Serverless::GraphQLApi
55
Properties:
66
SchemaInline: |
7-
type Mutation {
8-
addTodo(id: ID!, name: String, description: String, priority: Int): Todo
9-
}
7+
type Book {
8+
bookName: String
9+
}
10+
type Query { getBook(bookName: String): Book }
1011
Visibility: PRIVATE
1112
OwnerContact: blah-blah
1213
IntrospectionConfig: DISABLED

tests/translator/output/aws-cn/graphqlapi_introspection_query_resolver_limits.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"ApiId"
6262
]
6363
},
64-
"Definition": "type Mutation {\n addTodo(id: ID!, name: String, description: String, priority: Int): Todo\n}\n"
64+
"Definition": "type Book {\n bookName: String\n} \ntype Query { getBook(bookName: String): Book }\n"
6565
},
6666
"Type": "AWS::AppSync::GraphQLSchema"
6767
}

tests/translator/output/aws-us-gov/graphqlapi_introspection_query_resolver_limits.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"ApiId"
6262
]
6363
},
64-
"Definition": "type Mutation {\n addTodo(id: ID!, name: String, description: String, priority: Int): Todo\n}\n"
64+
"Definition": "type Book {\n bookName: String\n} \ntype Query { getBook(bookName: String): Book }\n"
6565
},
6666
"Type": "AWS::AppSync::GraphQLSchema"
6767
}

tests/translator/output/graphqlapi_introspection_query_resolver_limits.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"ApiId"
6262
]
6363
},
64-
"Definition": "type Mutation {\n addTodo(id: ID!, name: String, description: String, priority: Int): Todo\n}\n"
64+
"Definition": "type Book {\n bookName: String\n} \ntype Query { getBook(bookName: String): Book }\n"
6565
},
6666
"Type": "AWS::AppSync::GraphQLSchema"
6767
}

0 commit comments

Comments
 (0)