spring-graphql icon indicating copy to clipboard operation
spring-graphql copied to clipboard

docs and example howto utilize inline fragments

Open cforce opened this issue 2 years ago • 6 comments

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

cforce avatar Jan 17 '22 13:01 cforce

Is there anything specific required in GraphQL Java or in Spring GraphQL, i.e. isn't this just part of the GraphQL query syntax?

rstoyanchev avatar Feb 01 '22 17:02 rstoyanchev

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.

spring-projects-issues avatar Feb 08 '22 17:02 spring-projects-issues

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.

cforce avatar Feb 11 '22 12:02 cforce

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?

rstoyanchev avatar Feb 16 '22 14:02 rstoyanchev

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.

spring-projects-issues avatar Feb 23 '22 14:02 spring-projects-issues

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.

spring-projects-issues avatar Mar 02 '22 14:03 spring-projects-issues