-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Configure specific GraphQL schema files #42792
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
Comments
Hello @bjoernmayer Yes that's correct, those are meant to be locations, not fully resolved resources. I'm not sure I understand the use case though. Why point directly to resources and not locations? Are there schema resources in the same location that are not meant to be used? Why? |
Hi @bclozel, The main reason is Federation. We are working with subgraphs in a Mono Repository. We have all of our shared types in a shared library. Each subgraph then picks only the types, that it needs and should expose in its schema. |
Spring for GraphQL provides a You can already declare specific resources in your application by contributing a I'll move this issue to Spring Boot to consider a separate configuration property that would let you set additional schema resources on top of scanned ones. |
Hello could you please give me this task for me |
@jack5505 thanks for the proposal but this is targeted for the next minor version and we haven't started working on this yet. |
Heyho,
it seems like there is currently no way to specify schema files by their filename. Instead it is only possible to configure directories.
From GraphqlProperties.java:
Hence this is impossible:
I encountered this obstacle when trying to migrate from DGS to Spring GQL
The text was updated successfully, but these errors were encountered: