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 multiple query operations in a single request/query #30

Open
eslingerbryan opened this issue Feb 7, 2020 · 0 comments
Open

Comments

@eslingerbryan
Copy link
Owner

eslingerbryan commented Feb 7, 2020

The query and operation structs need some clarifying and the execution model needs to be refactored to support resolving multiple operations in a single query. Additionally, this execution should be fully parallelized among the operations. It may make sense to introduce the concept of a data loader at this time as well. Data loaders will be implemented as GenServers keeping track of an :ets cache with LRU eviction and flexible key spaces. It's not immediately clear if resolvers should use data loaders automatically, or if data loaders should be made available for resolvers to use in the function bodies. It is possible these are not mutually exclusive.

https://spec.graphql.org/June2018/#sec-Executing-Operations

@eslingerbryan eslingerbryan changed the title Support mulitple query operations in a single request/query Support multiple query operations in a single request/query Feb 8, 2020
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