Graphql multiple schemas in spring boot
I am trying to use 2 grahpql endpoints with the same server (spring boot 3) because I have an application which consists of 2 types “simple user” and “admin”
My Idea is similiar to have 2 main REST endpoints like this :
“rest1/query/getProducts” ==> grahpql schema 1
“rest2/query/getProducts” ==> graphql schema 2
schema 2 may have different and/or similiar types that exists in schema 1
I searched and found “Schema merge” & “Federation” …
but I don’t think that can fix the problem
Does this means I should make 2 separate servers ?
Read more here: Source link
