Skip to content

Commit cb5af95

Browse files
committed
Remove field from the getFieldList() method if the field is from type JSON or BLOB.
1 parent ee510d9 commit cb5af95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GraphQLTypeGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ private function canBeCastToGraphQL(AbstractBeanPropertyDescriptor $descriptor)
252252
{
253253
if ($descriptor instanceof ScalarBeanPropertyDescriptor) {
254254
$phpType = $descriptor->getPhpType();
255-
if ($phpType === 'array') {
256-
// JSON type cannot be casted since GraphQL does not allow for untyped arrays.
255+
if ($phpType === 'array' || $phpType === 'resource') {
256+
// JSON or BLOB types cannot be casted since GraphQL does not allow for untyped arrays or BLOB.
257257
return false;
258258
}
259259
}

0 commit comments

Comments
 (0)