-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
@@ -175,30 +172,4 @@ private CompletableFuture<ExecutionResult> executeOperation(ExecutionContext exe | |||
|
|||
return result; | |||
} | |||
|
|||
|
|||
private GraphQLObjectType getOperationRootType(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition) { |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough place.
Nice one |
Removing the
@fetch
directive and the nextgen engine, both were deprecated some time ago.