Skip to content

Commit acb7731

Browse files
committed
Fix isCollection method in SchemaBuilder
1 parent a0c0481 commit acb7731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphQl/Type/SchemaBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,6 @@ private function getResourcePaginatedCollectionType(string $resourceClass, Graph
494494

495495
private function isCollection(Type $type): bool
496496
{
497-
return $type->isCollection() && null !== $type->getCollectionValueType();
497+
return $type->isCollection() && Type::BUILTIN_TYPE_OBJECT === $type->getBuiltinType();
498498
}
499499
}

0 commit comments

Comments
 (0)