Skip to content

Project values ahead of time #15

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

Closed
wants to merge 2 commits into from
Closed

Project values ahead of time #15

wants to merge 2 commits into from

Conversation

rmosolgo
Copy link
Owner

@rmosolgo rmosolgo commented Aug 4, 2015

One possibility is to "look ahead" at fields and expose those values to parent fields. That way you could pre-load values from the DB.

I'm inspired by Sangria's approach.

Pros:

  • Simple API, simple implementation
  • Very flexible

Cons:

  • Runs through fields twice
  • How to handle Union & Interface?

@rmosolgo
Copy link
Owner Author

rmosolgo commented Sep 1, 2015

😴

@rmosolgo rmosolgo closed this Sep 1, 2015
@rmosolgo rmosolgo deleted the projection branch May 24, 2016 16:39
louim pushed a commit to louim/graphql-ruby that referenced this pull request Jun 4, 2021
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

Successfully merging this pull request may close these issues.

1 participant