subql icon indicating copy to clipboard operation
subql copied to clipboard

Support Union type

Open jiqiang90 opened this issue 4 years ago • 2 comments

Add support for GraphQL Union Types. Unions and interfaces are abstract GraphQL types that enable a schema field to return one of multiple object types. e.g. union Media = Book | Movie

Acceptance Criteria

  • You must be able to define union types using the union type e.g. union Media = Book | Movie
  • You can use them in entities like
union Media = Book | Movie 

type Content @entity {
  id: ID! #id is a required field
  media: Media!
  content: String!
}

jiqiang90 avatar Jul 18 '21 22:07 jiqiang90

hey there, any update on this 'nice to have' ? :)

2075 avatar May 24 '22 21:05 2075

This is largely dependent on https://github.com/subquery/subql/issues/1982

stwiname avatar May 08 '24 21:05 stwiname