Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for UNION types #123

Open
oligus opened this issue Sep 19, 2019 · 0 comments
Open

Support for UNION types #123

oligus opened this issue Sep 19, 2019 · 0 comments

Comments

@oligus
Copy link

oligus commented Sep 19, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant