Skip to content

Commit e992d4d

Browse files
committed
location -> position
1 parent 6542fe2 commit e992d4d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/graphql/Directives.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
import graphql.language.BooleanValue;
55
import graphql.language.Description;
66
import graphql.language.DirectiveDefinition;
7-
import graphql.language.EnumValue;
87
import graphql.language.StringValue;
98
import graphql.schema.GraphQLDirective;
10-
import graphql.schema.GraphQLEnumType;
119

1210
import static graphql.Scalars.GraphQLBoolean;
1311
import static graphql.Scalars.GraphQLString;
@@ -146,7 +144,7 @@ public class Directives {
146144
.directiveLocation(newDirectiveLocation().name(QUERY.name()).build())
147145
.directiveLocation(newDirectiveLocation().name(MUTATION.name()).build())
148146
.directiveLocation(newDirectiveLocation().name(SUBSCRIPTION.name()).build())
149-
.description(createDescription("This directive allows returning null in non-null locations that have an associated error"))
147+
.description(createDescription("This directive allows returning null in non-null positions that have an associated error"))
150148
.build();
151149
}
152150

@@ -244,7 +242,7 @@ public class Directives {
244242
@ExperimentalApi
245243
public static final GraphQLDirective NullOnErrorDirective = GraphQLDirective.newDirective()
246244
.name(NULL_ON_ERROR)
247-
.description("This directive allows returning null in non-null locations that have an associated error.")
245+
.description("This directive allows returning null in non-null positions that have an associated error.")
248246
.validLocations(QUERY, MUTATION, SUBSCRIPTION)
249247
.definition(NULL_ON_ERROR_DIRECTIVE_DEFINITION)
250248
.build();

0 commit comments

Comments
 (0)