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

Support for UNION types

Open oligus opened this issue 6 years ago • 0 comments

Unfortunately, there is no support for the union type at the moment.

Consider the following schema:

type LicenseValue {
  id: ID
  value: String
  typeObject: ParameterOptionUnion
}

union ParameterOptionUnion = Parameter | Option

type Parameter {
  id: ID
  name: String
}

type Option {
  id: ID
  name: String
  enumerables: Enumerables
}

You would probably need to have a uniontype in the Vuex ORM model itself and have varied return depending on the model using ...on Parameter { ... } and so on.

oligus avatar Sep 19 '19 10:09 oligus