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 value dependent gql queries #47

Open
roryc89 opened this issue Jul 2, 2021 · 0 comments
Open

Add value dependent gql queries #47

roryc89 opened this issue Jul 2, 2021 · 0 comments

Comments

@roryc89
Copy link
Contributor

roryc89 commented Jul 2, 2021

It could useful to be able to change the query dependant on conditions and have the return type reflect this.

whenGql :: Boolean -> query -> Maybe res could be uses when queries are not always needed

ifGql :: Boolean -> queryLeft -> queryRight -> Either resLeft resRight when different queries are needed depending on an condition.

This would be useful if we refactor OA UI tables to use Hasura.

Low priority

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