Skip to content

Commit 1ff078e

Browse files
committed
Wrap pageInfo in non-null.
To fit with spec.
1 parent 4592d89 commit 1ff078e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/graphql/relay/Relay.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public GraphQLObjectType connectionType(String name, GraphQLObjectType edgeType,
123123
.build())
124124
.field(newFieldDefinition()
125125
.name("pageInfo")
126-
.type(pageInfoType)
126+
.type(new GraphQLNonNull(pageInfoType))
127127
.build())
128128
.fields(connectionFields)
129129
.build();

0 commit comments

Comments
 (0)