Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,6 @@ class UserType extends GraphQLType
public function fields()
{
return [

// ...

// JSON column containing all posts made by this user
Expand All @@ -935,6 +934,5 @@ class UserType extends GraphQLType
}

// ...

}
```
2 changes: 1 addition & 1 deletion src/Rebing/GraphQL/Support/SelectFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down