-
Notifications
You must be signed in to change notification settings - Fork 315
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
How to replace the whole engine #1124
Comments
Some initial thoughts below, but not knowing the exact situation, it may take a bit of back and forth. I'm wondering if you really need to replace graphQlRouterFunction needs |
I had a look at the current state of the Spring Boot auto-configuration and in fact we should probably untangle the main auto-configuration from the transports one. Currently
Maybe we should ensure that transport properties are still bound even if the main auto-configuration is not considered. This would solve the The main auto-configuration is processed (and so the properties are bound) only if one of the following is true:
This sounds reasonable. I think the second problem comes from the fact that the HTTP transport expects both an Those changes sound quite sensible, independently of this use case being considered. |
I took care of the Spring Boot side of things in spring-projects/spring-boot#44495. |
Hi,
how would I replace the whole GraphQL Java engine with a custom implementation in Spring GraphQL?
What I mean is:
I would like to implement a custom
ExecutionGraphQlService
and therefore use all the transport level support, but everything else is custom.I will also not have any Schema file (therefore the
GraphQlAutoConfiguration
will not run) or any Controller with mappings.How would that look like in Spring GraphQL?
If I register just a custom
ExecutionGraphQlService
and a customGraphQlProperties
that causes the following error:But I don't want any
GraphQlSource
instance.Btw: I understand that this is not a common use case and it maybe very well out of scope, but nevertheless it would be great to be able to reuse all the awesome HTTP/Transport logic in Spring GraphQL.
Thanks team!
The text was updated successfully, but these errors were encountered: