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

Use Sangria Deferred for APIs that support filtering #5

Open
nightscape opened this issue Aug 15, 2018 · 1 comment
Open

Use Sangria Deferred for APIs that support filtering #5

nightscape opened this issue Aug 15, 2018 · 1 comment

Comments

@nightscape
Copy link

Afais there is no way to evade the n+1 requests problem with the current API.
I was wondering if it would be possible to either enhance the existing http directive or provide a new directive that uses Sangria's deferred resolvers mechanism to query APIs (in our case OData) that allow filtering and could therefore return all required (nested) elements at once.
Do you think this is possible?
We would be happy to provide a PR if you can provide some pointers how to start 😃

@nightscape
Copy link
Author

Started hacking away in #6

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