File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
graphql-java-servlet/src/test/groovy/graphql/kickstart/servlet Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import graphql.annotations.processor.GraphQLAnnotations
77import graphql.execution.instrumentation.InstrumentationState
88import graphql.execution.instrumentation.SimplePerformantInstrumentation
99import graphql.execution.instrumentation.parameters.InstrumentationCreateStateParameters
10+ import graphql.introspection.Introspection
1011import graphql.kickstart.execution.GraphQLRequest
1112import graphql.kickstart.execution.config.ExecutionStrategyProvider
1213import graphql.kickstart.execution.config.InstrumentationProvider
@@ -268,7 +269,7 @@ class OsgiGraphQLHttpServletSpec extends Specification {
268269 static class TestDirectiveProvider implements GraphQLDirectiveProvider {
269270 @Override
270271 Set<GraphQLDirective > getDirectives () {
271- return new HashSet<> (Arrays . asList(GraphQLDirective . newDirective(). name(" myDirective" ). build()));
272+ return new HashSet<> (Arrays . asList(GraphQLDirective . newDirective(). name(" myDirective" ). validLocation( Introspection.DirectiveLocation . FIELD ) . build()));
272273 }
273274 }
274275
You can’t perform that action at this time.
0 commit comments