-
Notifications
You must be signed in to change notification settings - Fork 317
Provide guidance on how to set up multiple GraphQL endpoints #439
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
@rstoyanchev Just wanted to provide a little update here. This is something that I was able to implement over the past few days successfully. If this is something you think would be worthwhile, I would love to help get something concrete into the spring for graphql project here (Perhaps more relevant to the starter project now that I'm thinking of it). Just a few notes:
I'm sure there is more to this, especially if you would want to support not just web mvc, but it's a start. Would love to hear your thoughts on this. |
Yes, I was going to comment along the same lines. The auto-config is really built for one GraphQL endpoint per JVM, but if you're willing to make your own config, it's not that much to replicate. I think it would be useful to have a minimal sample of this for a start. The challenge with turning it into auto-config is that we won't be able to just detect the various beans like interceptors, exception resolvers, and others since it won't be clear which endpoint they belong to. However, we can give it more consideration if it becomes a common need. |
Thanks for the reply here. I'll set up a sample project for you when I have some time. I'd love to see this get implemented at some point |
@dsarlo we'll experiment and document how to this. There might also be some small changes needed. |
Guys, can you show some example how to do this configuration? |
Hey! The general approach is described above. Still haven’t had time to create an example project. When I find the time, I’ll post here! |
We'll consider this as part of #208. |
I want two separate endpoints, each with their own schemas to not expose our internal schemas to clients through GraphiQL. Both will need have different security configurations as well. (Just reiterating that this is something we need to do)
I found this stack overflow asking for something similar, but was hoping to see if someone more familiar with this project had a better way of doing something like this?
https://stackoverflow.com/questions/62202051/is-there-a-way-to-expose-2-graphql-endpoints-using-spring-boot-starter-app-graph
Any advice would be appreciated here!
The text was updated successfully, but these errors were encountered: