diff --git a/src/GraphQL/QueryFieldResolver.php b/src/GraphQL/QueryFieldResolver.php index f1b3b36..d2b17b3 100644 --- a/src/GraphQL/QueryFieldResolver.php +++ b/src/GraphQL/QueryFieldResolver.php @@ -27,8 +27,12 @@ public function resolveQueryField(Field $field, Content $content) return $this->queryFieldService->loadContentItems($content, $field->fieldDefIdentifier); } - public function resolveQueryFieldConnection(Argument $args, Field $field, Content $content) + public function resolveQueryFieldConnection(Argument $args, ?Field $field, Content $content) { + if ($field === null) { + return null; + } + if (!isset($args['first'])) { $args['first'] = $this->queryFieldService->getPaginationConfiguration($content, $field->fieldDefIdentifier); }