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

filtering lists of union types #112

Open
hartig opened this issue Sep 11, 2020 · 0 comments
Open

filtering lists of union types #112

hartig opened this issue Sep 11, 2020 · 0 comments
Labels
backlog Keep open for later (typically, not a problem for SPIRIT but maybe for other woo.sh projects) new feature New feature or request question Further information is requested

Comments

@hartig
Copy link
Member

hartig commented Sep 11, 2020

Consider the following part of a DB schema.

union U = A | B

type X {
  myUs: [U]
}

When generating the API schema for this part, the field myUs is extended with an argument that allows users to filter the retrieved list of U objects. However, since U is a union type, it is not immediately clear what the corresponding input type for this filter should look like. The purpose of this issue is to develop an idea for this case.

@hartig hartig added new feature New feature or request question Further information is requested backlog Keep open for later (typically, not a problem for SPIRIT but maybe for other woo.sh projects) labels Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Keep open for later (typically, not a problem for SPIRIT but maybe for other woo.sh projects) new feature New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant