We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Pagination after cursor not working but except last cursor
Expected behavior/Solution
first result
{ "data": { "tasks": { "pageInfo": { "total": 100 }, "edges": [ { "cursor": "Njc=" }, { "cursor": "Njg=" #second request need pagination from here }, { "cursor": "Njk=" } ] } } }
second query
# Write your query or mutation here { tasks(first: 3, after:"Njg=") { pageInfo { total } edges { cursor } } }
second result
{ "data": { "tasks": { "pageInfo": { "total": 100 }, "edges": [ { "cursor": "Njc=" # wrong starting }, { "cursor": "Njg=" }, { "cursor": "Njk=" } ] } } }
Lighthouse Version
v5.24.0
graphql file
extend type Query @guard{ tasks:[Task!]! @paginate(type: CONNECTION, builder: "App\\GraphQL\\Builders\\Task") }
app/GraphQL/Builders/Task.php
<?php namespace App\GraphQL\Builders; class Task { /** * @param null $_ * @param array<string, mixed> $args */ public function __invoke($_, array $args) { $query = \App\Models\Task::query(); // $search = ArrayHelper::get($args, 'search'); // if ($search) { // $query->search($search); // } return $query; } }
The text was updated successfully, but these errors were encountered:
Your report is completely valid, this is a problem we are aware of. We have an open issue for it, so I am going to close this one.
If you would like to implement a fix, see #311 (comment) for context.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Pagination after cursor not working but except last cursor
Expected behavior/Solution
first result
second query
second result
Lighthouse Version
v5.24.0
graphql file
app/GraphQL/Builders/Task.php
The text was updated successfully, but these errors were encountered: