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

Missing and/or empty Query #345

Open
patrik-simunic-cz opened this issue Jan 21, 2024 · 0 comments
Open

Missing and/or empty Query #345

patrik-simunic-cz opened this issue Jan 21, 2024 · 0 comments

Comments

@patrik-simunic-cz
Copy link

When:

  • no Query is defined in the GQL schema, deployment fails with error There is no top level schema object defined.
    AppSync does not pickup the Mutation, nor Subscription operations without the Query operation being present as well.
  • the GQL schema is explicitly defined without the Query operation, deployment fails with error A schema MUST have a 'query' operation defined.
  • the GQL schema is explicitly defined with empty Query operation, 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant