Skip to content

Conversation

@kmoore-intuit
Copy link
Collaborator

What Changed

Why

Todo:

  • Add tests
  • Add docs

@kmoore-intuit kmoore-intuit changed the base branch from master to defer-support March 8, 2023 20:44
.selections(selections)
.build();

if(parentNode instanceof Field) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should be a common parent.

Copy link
Collaborator Author

@kmoore-intuit kmoore-intuit Mar 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a common parent, but i am only checking to cast correctly and use transformer

}

//Gets all the definitions for the fragment spreads
List<FragmentDefinition> fragmentSpreadDefs = neededFragmentSpreads
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to Util and see if BatchLoader also uses/needs something similar ?

''').build()

ExecutionResult executionResult = specUnderTest.execute(petsEI, true).get()
DeferOptions deferOptions = DeferOptions.builder()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like deferOptions class

.map(OperationDefinition::getSelectionSet)
.map(SelectionSet::getSelections)
.flatMap(List::stream)
.forEach(selection -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sequence looks sweet


@Builder
public class PruneChildDeferSelectionsModifier extends NodeVisitorStub {
private DeferOptions deferOptions;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final ?

@CNAChino CNAChino mentioned this pull request Mar 10, 2023
2 tasks
@kmoore-intuit kmoore-intuit merged commit dd0dc42 into defer-support Mar 10, 2023
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.

4 participants