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

[2/x] Refactor root field builder for deferred named fragments #89

Conversation

calvincestari
Copy link
Member

This second PR for apollographql/apollo-ios#3141 refactors the root field builder to build deferred named fragments into the IR. The next PR will generate selection sets from the refactored IR.

  • Adds IR matchers for named fragment.
  • Refactored logic for containsDeferredFragment; moved to where the scope condition is modified to include the defer condition.
  • Refactored add selections logic for .fragmentSpread

@calvincestari
Copy link
Member Author

I'm gonna merge this into #74 so the whole root field builder work can be evaluated as a whole. Especially since this one makes changes to code that's already in that PR.

@calvincestari calvincestari merged commit 64a88e4 into defer/root-field-builder-inline-fragments Oct 16, 2023
12 checks passed
@calvincestari calvincestari deleted the defer/root-field-builder-named-fragments branch October 16, 2023 02:24
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