spring-graphql
spring-graphql copied to clipboard
docs and example howto utilize inline fragments
E.g use conditional subselects to return qualified entities of the same repo. https://graphql.org/learn/queries/#inline-fragments
Use meta filed like __typename to subselect dedicate entities. https://graphql.org/learn/queries/#variables
Is there anything specific required in GraphQL Java or in Spring GraphQL, i.e. isn't this just part of the GraphQL query syntax?
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
This just part of the GraphQL query syntax, but i did not found any example what needs to be implemented on the backend in spring grapghql backend to support these.
The GraphQL Java engine supports the GraphQL query syntax, so it should just work. Define unions and interfaces in the schema, return instances of those from controller methods, and send the client query as shown in the examples. Have you tried this and if so what did you get stuck on?
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.