Skip to content

Refactor GraphQlSource builder to separate programmatic vs SDL way of create GraphQLSchema #312

@ruben-garciapariente

Description

@ruben-garciapariente

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions