plugin-graphql
plugin-graphql copied to clipboard
Support for UNION types
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.