Skip to content

Commit 94435f9

Browse files
authored
use graphQLContext instead of context
1 parent 0ace679 commit 94435f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/jooby-graphql/src/main/java/io/jooby/internal/graphql/GraphQLHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ protected final ExecutionInput newExecutionInput(@NonNull Context ctx) {
4444
ctx.query("variables")
4545
.toOptional()
4646
.filter(string -> !string.equals("{}"))
47-
.map(str -> json.fromJson(str, Map.class))
47+
.map(str -> json.<Map<String, Object>>fromJson(str, Map.class))
4848
.orElseGet(Collections::emptyMap);
4949
request.setOperationName(operationName);
5050
request.setQuery(query);
5151
request.setVariables(variables);
5252
}
5353
return ExecutionInput.newExecutionInput(request.getQuery())
5454
.operationName(request.getOperationName())
55-
.context(ctx)
55+
.graphQLContext(Map.of(Context.class, ctx))
5656
.variables(request.getVariables())
5757
.build();
5858
}

0 commit comments

Comments
 (0)