Skip to content

Commit a8d0d35

Browse files
a70537952Mikk Mihkel Nurges
authored andcommitted
Replace hardcode paginationType class check (#191)
1 parent a679bfa commit a8d0d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rebing/GraphQL/Support/SelectFields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ protected static function handleFields(array $requestedFields, $parentType, arra
142142
$queryable = self::isQueryable($fieldObject->config);
143143

144144
// Pagination
145-
if(is_a($parentType, PaginationType::class))
145+
if(is_a($parentType, config('graphql.pagination_type', PaginationType::class)))
146146
{
147147
self::handleFields($field, $fieldObject->config['type']->getWrappedType(), $select, $with);
148148
}

0 commit comments

Comments
 (0)