leangen / graphql-spqr-spring-boot-starter

Spring Boot 2 starter powered by GraphQL SPQR
Apache License 2.0
275 stars 68 forks source link

How to support multiple endpoint with different basePackages #150

Open underscore05 opened 4 months ago

underscore05 commented 4 months ago

I tried to work on the bare graphql-spqr but this spring-boot-starter seems to offer stuff that I wanted to use like support for reactive endpoints.

But it only offers a single /graphql endpoint. What I want is something like /admin/graphql and /customer/graphql. Can you help me create a multiple GraphQLSchemaGenerator with bean qualifier so that I can attach it to a controller? Or maybe something like an additional parameter to @GraphqlAPI endpoint where I can specify which endpoint it will belongs to?

I wanted to have a separate endpoint so the introspection won't expose admin and other unnecessary graphql commands.