8000 Removed deprecated methods in ExecutionContext by bbakerman · Pull Request #3512 · graphql-java/graphql-java · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/main/java/graphql/execution/ExecutionContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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