aws-appsync-community
aws-appsync-community copied to clipboard
Missing and/or empty Query
When:
- no
Queryis defined in the GQL schema, deployment fails with errorThere is no top level schema object defined.
AppSync does not pickup theMutation, norSubscriptionoperations without theQueryoperation being present as well. - the GQL
schemais explicitly defined without theQueryoperation, deployment fails with errorA schema MUST have a 'query' operation defined. - the GQL
schemais explicitly defined with emptyQueryoperation, then the „Queries“ page in AppSync API console fails to load
Bugs reproduction
All 3 scenarios are demonstrated in this bug reproduction here: https://github.com/testuj-to/appsync-missing-query