-
Notifications
You must be signed in to change notification settings - Fork 294
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
Refactor GraphQlSource builder to separate programmatic vs SDL way of create GraphQLSchema #312
Comments
Generally, SDL is what we aim to support support and that's what If we wanted to support programmatic, it would maybe be a different builder, or perhaps the two builders could share a common base builder, but again I have not looked in detail and it is not planned currently. For now, consider bypassing the builder and creating a |
Thank you very much for your suggestion. I tried to create my own
In short, I haven't seen a simple way to make it work with small changes :_______( |
Thanks for sharing the outcome. For the Overall I'm wondering if we could open things up a bit with the |
Thank you very much for your advice. I have tried using the When the Instead, maybe it is possible to do it the other way around (correctly generate a If this is really as I have seen, could it make sense to change the |
You're right that I don't think there is any benefit to change |
Separate more clearly the SDL builder options from other common options independent of how GraphQLSchema is created. See gh-312
This commit adapts to changes done in spring-projects/spring-graphql#312
@ruben-garciapariente I've made a few changes as follows. Firstly, refactored the Along with that I added an extra method to |
We would like to be able to define the schema programmatically instead of through an SDL file.
In our first attempt we have used a GraphQlSourceBuilderCustomizer and used the schemaFactory method, but we noticed that the DefaultTypeResolver is not registered correctly and it is necessary to have an SDL file even if it is empty.
Could you consider adding a method to the DefaultGraphQlSourceBuilder that would allow to directly insert a GraphQLSchema?
Many thanks & regards,
Rubén
The text was updated successfully, but these errors were encountered: