diff --git a/src/Resolvers/TransformedDataResolver.php b/src/Resolvers/TransformedDataResolver.php index 18039725..c32d21cb 100644 --- a/src/Resolvers/TransformedDataResolver.php +++ b/src/Resolvers/TransformedDataResolver.php @@ -213,8 +213,12 @@ protected function transformIterableItems( protected function resolvePotentialPartialArray( array $value, - TransformationContext $fieldContext, + ?TransformationContext $fieldContext, ): array { + if($fieldContext === null) { + return $value; + } + if ($fieldContext->exceptPartials && $fieldContext->exceptPartials->count() > 0) { $partials = [];