You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should have return T18z and T180 instead of T180 and T181.
Is this a bug in Spring for GraphQL, or am I doing something wrong?
It seems to me that when the cursors are returned they start with index 1 (T18x), but when passing them back to the service in the "after" parameter, it expects the indexes to start with 0. And thereby a record is missed.
The text was updated successfully, but these errors were encountered:
I'm using 1.2.5 (Spring Boot 3.2.4). I can see that a Spring 3.2.5 with 1.2.6 got released the other day. I just gave it a try, and it works like a charm.
I'm experiencing an issue with the new way to do pagination.
I've created a GraphQL query:
And a corresponding controller method, that takes a ScrollSubrange argument).
I'm calling a repository method, that only takes the position, limit and sort:
When I perform this query:
I will receive the first three countries with cursors T18x, T18y and T18z:
However, when I perform the query a second time, and specifying that I want the first two countries starting after cursor T18y:
it will skip a record with cursor T18z:
It should have return T18z and T180 instead of T180 and T181.
Is this a bug in Spring for GraphQL, or am I doing something wrong?
It seems to me that when the cursors are returned they start with index 1 (T18x), but when passing them back to the service in the "after" parameter, it expects the indexes to start with 0. And thereby a record is missed.
The text was updated successfully, but these errors were encountered: