diff --git a/src/GraphQL/DataObjectQueryFieldConfigGenerator/Helper/Objects.php b/src/GraphQL/DataObjectQueryFieldConfigGenerator/Helper/Objects.php index 92e6a750..fd3415b6 100644 --- a/src/GraphQL/DataObjectQueryFieldConfigGenerator/Helper/Objects.php +++ b/src/GraphQL/DataObjectQueryFieldConfigGenerator/Helper/Objects.php @@ -82,7 +82,7 @@ public function resolve($value = null, $args = [], $context = [], ResolveInfo $r // Explicitly set the type of the mockup object because // these don't have the matching class instance for // auto-detect. - $type = null; + $type = ''; if ($relation instanceof DefaultMockup) { $type = $relation->getType(); }