Support for UNION types
oligus opened this issue · comments
Oli Gustafsson commented
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 union
type in the Vuex ORM model itself and have varied return depending on the model using ...on Parameter { ... }
and so on.