@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Illuminate\Database\Eloquent\Builder as EloquentBuilder; |
| 7 | 7 | use Illuminate\Database\Query\Builder as QueryBuilder; |
| 8 | 8 | use Illuminate\Support\Arr; |
| 9 | -use Illuminate\Support\Collection; |
|
| 10 | 9 | use Illuminate\Support\ServiceProvider; |
| 11 | 10 | |
| 12 | 11 | class CursorPaginationServiceProvider extends ServiceProvider |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace DutchCodingCompany\CursorPagination\Directives; |
| 4 | 4 | |
| 5 | +use DutchCodingCompany\CursorPagination\Pagination\CursorArgs; |
|
| 6 | +use DutchCodingCompany\CursorPagination\Pagination\PaginationManipulator; |
|
| 5 | 7 | use GraphQL\Language\AST\FieldDefinitionNode; |
| 6 | 8 | use GraphQL\Language\AST\ObjectTypeDefinitionNode; |
| 7 | 9 | use GraphQL\Type\Definition\ResolveInfo; |
| 8 | -use DutchCodingCompany\CursorPagination\Pagination\CursorArgs; |
|
| 9 | -use DutchCodingCompany\CursorPagination\Pagination\PaginationManipulator; |
|
| 10 | 10 | use Nuwave\Lighthouse\Pagination\PaginationArgs; |
| 11 | 11 | use Nuwave\Lighthouse\Schema\AST\DocumentAST; |
| 12 | 12 | use Nuwave\Lighthouse\Schema\Values\FieldValue; |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace DutchCodingCompany\CursorPagination\Pagination; |
| 4 | 4 | |
| 5 | +use DutchCodingCompany\CursorPagination\CursorPaginator; |
|
| 5 | 6 | use GraphQL\Type\Definition\ResolveInfo; |
| 6 | 7 | use Illuminate\Support\Collection; |
| 7 | -use DutchCodingCompany\CursorPagination\CursorPaginator; |
|
| 8 | 8 | use Nuwave\Lighthouse\Support\Contracts\GraphQLContext; |
| 9 | 9 | |
| 10 | 10 | class ConnectionField |
@@ -2,12 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace DutchCodingCompany\CursorPagination\Pagination; |
| 4 | 4 | |
| 5 | -use GraphQL\Error\Error; |
|
| 6 | -use Illuminate\Contracts\Pagination\LengthAwarePaginator; |
|
| 7 | -use Illuminate\Support\Arr; |
|
| 8 | -use Laravel\Scout\Builder as ScoutBuilder; |
|
| 9 | 5 | use DutchCodingCompany\CursorPagination\Cursor; |
| 10 | 6 | use DutchCodingCompany\CursorPagination\CursorPaginator; |
| 7 | +use GraphQL\Error\Error; |
|
| 8 | +use Laravel\Scout\Builder as ScoutBuilder; |
|
| 11 | 9 | use Nuwave\Lighthouse\Pagination\PaginationArgs; |
| 12 | 10 | use Nuwave\Lighthouse\Pagination\PaginationType; |
| 13 | 11 | |