Skip to content

Commit

Permalink
Merge pull request #3204 from mrguamos/3203
Browse files Browse the repository at this point in the history
use graphQLContext instead of context
  • Loading branch information
jknack authored Oct 28, 2023
2 parents 0ace679 + 94435f9 commit d31ccff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ protected final ExecutionInput newExecutionInput(@NonNull Context ctx) {
ctx.query("variables")
.toOptional()
.filter(string -> !string.equals("{}"))
.map(str -> json.fromJson(str, Map.class))
.map(str -> json.<Map<String, Object>>fromJson(str, Map.class))
.orElseGet(Collections::emptyMap);
request.setOperationName(operationName);
request.setQuery(query);
request.setVariables(variables);
}
return ExecutionInput.newExecutionInput(request.getQuery())
.operationName(request.getOperationName())
.context(ctx)
.graphQLContext(Map.of(Context.class, ctx))
.variables(request.getVariables())
.build();
}
Expand Down

0 comments on commit d31ccff

Please sign in to comment.