We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ace679 commit 94435f9Copy full SHA for 94435f9
1 file changed
modules/jooby-graphql/src/main/java/io/jooby/internal/graphql/GraphQLHandler.java
@@ -44,15 +44,15 @@ protected final ExecutionInput newExecutionInput(@NonNull Context ctx) {
44
ctx.query("variables")
45
.toOptional()
46
.filter(string -> !string.equals("{}"))
47
- .map(str -> json.fromJson(str, Map.class))
+ .map(str -> json.<Map<String, Object>>fromJson(str, Map.class))
48
.orElseGet(Collections::emptyMap);
49
request.setOperationName(operationName);
50
request.setQuery(query);
51
request.setVariables(variables);
52
}
53
return ExecutionInput.newExecutionInput(request.getQuery())
54
.operationName(request.getOperationName())
55
- .context(ctx)
+ .graphQLContext(Map.of(Context.class, ctx))
56
.variables(request.getVariables())
57
.build();
58
0 commit comments