Skip to content

Commit 170901d

Browse files
committed
set Type::nonNull
1 parent 90dc61d commit 170901d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/SimplePaginationType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function getPaginationFields(string $typeName): array
3838
{
3939
return [
4040
'data' => [
41-
'type' => GraphQLType::listOf(GraphQL::type($typeName)),
41+
'type' => GraphQLType::nonNull(GraphQLType::listOf(GraphQL::type($typeName))),
4242
'description' => 'List of items on the current page',
4343
'resolve' => function (Paginator $data): Collection {
4444
return $data->getCollection();

0 commit comments

Comments
 (0)