diff --git a/docs/advanced.md b/docs/advanced.md index 9e0fb231..09435b53 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -919,7 +919,6 @@ class UserType extends GraphQLType public function fields() { return [ - // ... // JSON column containing all posts made by this user @@ -935,6 +934,5 @@ class UserType extends GraphQLType } // ... - } ``` diff --git a/src/Rebing/GraphQL/Support/SelectFields.php b/src/Rebing/GraphQL/Support/SelectFields.php index dea88958..f1c480fc 100644 --- a/src/Rebing/GraphQL/Support/SelectFields.php +++ b/src/Rebing/GraphQL/Support/SelectFields.php @@ -139,7 +139,7 @@ protected static function handleFields(array $requestedFields, $parentType, arra $customQuery = array_get($fieldObject->config, 'query'); // Check if the field is a relation that needs to be requested from the DB - $queryable = self::isQueryable($fieldObject); + $queryable = self::isQueryable($fieldObject->config); // Pagination if(is_a($parentType, PaginationType::class))