File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ public static class Builder {
146146
147147 private String query ;
148148 private String operationName ;
149- private Object context = GraphQLContext .newContext ();
149+ private Object context = GraphQLContext .newContext (). build () ;
150150 private Object root ;
151151 private Map <String , Object > variables = Collections .emptyMap ();
152152 private DataLoaderRegistry dataLoaderRegistry = new DataLoaderRegistry ();
Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ class ExecutionInputTest extends Specification {
4949 (executionInput. context as GraphQLContext ). get(" k2" ) == " v2"
5050 }
5151
52+ def " context is defaulted" () {
53+ when :
54+ def executionInput = ExecutionInput . newExecutionInput(). query(query)
55+ .build()
56+ then :
57+ executionInput. context instanceof GraphQLContext
58+ }
59+
5260 def " transform works and copies values" () {
5361 when :
5462 def executionInputOld = ExecutionInput . newExecutionInput(). query(query)
You can’t perform that action at this time.
0 commit comments