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

Add support for narrowing a doobie row based on a discriminator #76

Closed
milessabin opened this issue Aug 14, 2020 · 1 comment
Closed

Comments

@milessabin
Copy link
Member

GraphQL supports subtype polymorphism via interface extension and safe downcasting using fragments. Currently for a doobie backed model this has to be implemented via subqueries, ie. we first have to read a discriminator value and then use that to create a subtype specific continuation query.

We should be able to support inlining small sets of subtypes in a single row with a discriminator to avoid having to make an additional query.

@milessabin
Copy link
Member Author

Fixed in #152 and #188.

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