GraphQL Union and Interface Example - help needed

I am looking for an example on GraphQL Union and Interface. Appreciate if any one can help by providing an example or link that shows how to define a query and resolvers for Union and Interface.

Thanks and regards,

Ram

Hi @ramprasad2018,

Can you give me a bit more information about what you’re looking for?

Here are some good blog posts about Interfaces and Unions: 

https://graphqlmastery.com/blog/graphql-interfaces-and-unions-how-to-design-graphql-schema

https://docs.aws.amazon.com/appsync/latest/devguide/interfaces-and-unions.html

If you’re looking for examples in the GitHub API, I can also help there as well?

2 Likes