Skip to content

Commit

Permalink
Merge pull request #3512 from graphql-java/remove-deprecated-method-o…
Browse files Browse the repository at this point in the history
…n-execution-context

Removed deprecated methods in ExecutionContext
  • Loading branch information
andimarek committed Mar 26, 2024
2 parents 3e565cb + 62118c6 commit 108910e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions src/main/java/graphql/execution/ExecutionContext.java
Expand Up @@ -122,16 +122,6 @@ public OperationDefinition getOperationDefinition() {
return operationDefinition;
}

/**
* @return map of coerced variables
*
* @deprecated use {@link #getCoercedVariables()} instead
*/
@Deprecated(since = "2022-05-24")
public Map<String, Object> getVariables() {
return coercedVariables.toMap();
}

public CoercedVariables getCoercedVariables() {
return coercedVariables;
}
Expand Down
Expand Up @@ -94,7 +94,7 @@ public static Builder newDataFetchingEnvironment(ExecutionContext executionConte
.locale(executionContext.getLocale())
.document(executionContext.getDocument())
.operationDefinition(executionContext.getOperationDefinition())
.variables(executionContext.getVariables())
.variables(executionContext.getCoercedVariables().toMap())
.executionId(executionContext.getExecutionId());
}

Expand Down
Expand Up @@ -54,7 +54,7 @@ class ExecutionContextBuilderTest extends Specification {
executionContext.root == root
executionContext.context == context // Retain deprecated method for test coverage
executionContext.graphQLContext == graphQLContext
executionContext.variables == [var: 'value'] // Retain deprecated method for test coverage
executionContext.getCoercedVariables().toMap() == [var: 'value']
executionContext.getFragmentsByName() == [MyFragment: fragment]
executionContext.operationDefinition == operation
executionContext.dataLoaderRegistry == dataLoaderRegistry
Expand Down

0 comments on commit 108910e

Please sign in to comment.