-
Notifications
You must be signed in to change notification settings - Fork 222
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
Could not find type with alias "Subscription". Did you forget to define it? #1139
Comments
Hi @jsakars. I have not been able to reproduce (I though I did, but I had a Subscription defined in my config). |
@Vincz hi! thanks for looking into this. I can confirm I am on a latest stable version of this bundle - here is the full
|
Also related, the errors messages are not explicit anymore as webonyx perform PHP type checking on the return of type resolution.
So we don't know what type is missing in case of missing type. |
Hi, any news on this, please? |
@vitek-rostislav Do you still have the issue using the latest commits ? (using |
Hi, @Vincz, I tried it now using |
Ok, I'll check asap and publish a new version. |
stack.txt See attached file for the stack trace provided by Symfonys exception page. |
We've just updated to 1.10 and are hitting the same problem too. We've written our own wrapper to handle some customised generation we do, so we're calling:
We've found the fix proposed to add Our config is like this:
Happy to help debug it if we can. |
It's fixed on master. I'll check the other pending PR and publish a new version soon. |
Using latest stable Symfony and this bundle and given the following
config/packages/graphql.yaml
content:Symfony profiler shows the following error when trying to access
GraphQL
section:An exception has been thrown during the rendering of a template ("Could not find type with alias "Subscription". Did you forget to define it?").
.Now with the following
config/packages/graphql.yaml
content:Symfony profiler shows the following error when trying to access
GraphQL
section:An exception has been thrown during the rendering of a template ("Could not find type with alias "Mutation". Did you forget to define it?").
It seems that GraphQL profiler expects ALL types (query, mutations, subscription) to be defined even though one might not have some of them (e.g. only the queries).
It seems to work adding some dummy type definition e.g.:
Is there something missing in the default configuration?
The text was updated successfully, but these errors were encountered: