-
Notifications
You must be signed in to change notification settings - Fork 349
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
Filtering all mutations breaks the schema #5111
Comments
Does it work when you add https://the-guild.dev/graphql/mesh/docs/transforms/prune ? |
It doesn't, was my first attempt to see if I could work round the issue. |
also removing all Query fail in the same way |
@Marx2 You cannot remove all the queries in a GraphQL Schema. A GraphQL Schema needs to have a Query type with a valid field at least. |
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Github,
Stackblitz
or
CodeSandbox
Describe the bug
Filtering out all mutations causes the schema to break.
eg.
The playground shows the error message
To Reproduce Steps to reproduce the behavior:
Expected behavior
Environment:
@graphql-mesh/...
:Additional context
The text was updated successfully, but these errors were encountered: