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

code generation to support concurrent resolution / fetches #28

Open
willscott opened this issue Apr 25, 2021 · 0 comments
Open

code generation to support concurrent resolution / fetches #28

willscott opened this issue Apr 25, 2021 · 0 comments

Comments

@willscott
Copy link
Member

Currently, the codegen for resolve over struct fields, map keys, lists, and unions does the work of resolution to fetch needed data and return the expected object.

Per https://github.com/graphql-go/graphql/blob/master/examples/concurrent-resolvers/main.go#L33-L35
if they immediately return a function that then does the work, the graphql loader framework will be able to process resolutions in parallel, which would be a nice speed boost.

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