Skip to content

Remove @fetch and nextgen engine #2923

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

Merged
merged 4 commits into from
Aug 17, 2022
Merged

Remove @fetch and nextgen engine #2923

merged 4 commits into from
Aug 17, 2022

Conversation

dondonz
Copy link
Member

@dondonz dondonz commented Aug 16, 2022

Removing the @fetch directive and the nextgen engine, both were deprecated some time ago.

@dondonz dondonz changed the title Deprecation drive part 1 Remove @fetch and nextgen engine Aug 16, 2022
@@ -175,30 +172,4 @@ private CompletableFuture<ExecutionResult> executeOperation(ExecutionContext exe

return result;
}


private GraphQLObjectType getOperationRootType(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition) {
Copy link
Member Author

@dondonz dondonz Aug 16, 2022

Choose a reason for hiding this comment

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

Moved this to a util, it's also used by the ExecutableNormalizedOperationFactory

@@ -109,7 +109,7 @@ private ExecutableNormalizedOperation createNormalizedQueryImpl(GraphQLSchema gr
.normalizedVariables(normalizedVariableValues)
.build();

GraphQLObjectType rootType = Common.getOperationRootType(graphQLSchema, operationDefinition);
Copy link
Member Author

Choose a reason for hiding this comment

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

This was the only reference to nextgen outside of the nextgen files

@@ -96,4 +103,29 @@ public static void replaceTypeReferences(GraphQLSchema schema) {
SchemaTraverser schemaTraverser = new SchemaTraverser(schemaElement -> schemaElement.getChildrenWithTypeReferences().getChildrenAsList());
schemaTraverser.depthFirst(new GraphQLTypeResolvingVisitor(typeMap), roots);
}

public static GraphQLObjectType getOperationRootType(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition) {
Copy link
Member Author

@dondonz dondonz Aug 16, 2022

Choose a reason for hiding this comment

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

Added util method here. Let me know if there's a better util to chuck this method into

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough place.

@bbakerman bbakerman added this to the 20.0 milestone Aug 16, 2022
@bbakerman
Copy link
Member

Nice one

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.

2 participants