File tree 1 file changed +2
-1
lines changed
graphql-java-servlet/src/test/groovy/graphql/kickstart/servlet
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
7
7
import graphql.execution.instrumentation.InstrumentationState
8
8
import graphql.execution.instrumentation.SimplePerformantInstrumentation
9
9
import graphql.execution.instrumentation.parameters.InstrumentationCreateStateParameters
10
+ import graphql.introspection.Introspection
10
11
import graphql.kickstart.execution.GraphQLRequest
11
12
import graphql.kickstart.execution.config.ExecutionStrategyProvider
12
13
import graphql.kickstart.execution.config.InstrumentationProvider
@@ -268,7 +269,7 @@ class OsgiGraphQLHttpServletSpec extends Specification {
268
269
static class TestDirectiveProvider implements GraphQLDirectiveProvider {
269
270
@Override
270
271
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()));
272
273
}
273
274
}
274
275
You can’t perform that action at this time.
0 commit comments