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
Request 1:
{ messages: all_chat_message_002055f4d34a8dd861270a0ebcb111acd1996ceda283dab1d0c09e59d5414e43a83f( orderBy: "timestamp" orderDirection: ASC ) { hasNextPage endCursor documents { cursor fields { text timestamp } } } }
Result 1:
{ "data": { "messages": { "hasNextPage": false, "endCursor": "33W9ydxf9SqZu3exkdHY9KZTkzYTk6WtCSHVbQxhcBYSS6GaBGgBQRdKfVzaKnsxUudM6R2yHCiarVGn9a3cGEsA", "documents": [ { "cursor": "21Ca22qpjQkowN8X6sGusJKtMR8p8sQvYh7VMpFmwgdwf5ePVxzGPUVTc82k81dfcU2doWoDRAbSEpxDQGxuH89B", "fields": { "text": "1", "timestamp": 1684403519921 } }, { "cursor": "33W9ydxf9SqZu3exkdHY9KZTkzYTk6WtCSHVbQxhcBYSS6GaBGgBQRdKfVzaKnsxUudM6R2yHCiarVGn9a3cGEsA", "fields": { "text": "2", "timestamp": 1684403544448 } } ] } } }
Request 2 (using cursor of the last document in after):
cursor
after
{ messages: all_chat_message_002055f4d34a8dd861270a0ebcb111acd1996ceda283dab1d0c09e59d5414e43a83f( after: "33W9ydxf9SqZu3exkdHY9KZTkzYTk6WtCSHVbQxhcBYSS6GaBGgBQRdKfVzaKnsxUudM6R2yHCiarVGn9a3cGEsA" orderBy: "timestamp" orderDirection: ASC ) { hasNextPage endCursor documents { cursor fields { text timestamp } } } }
Result 2: Same as above, but should have been empty page.
The text was updated successfully, but these errors were encountered:
The pagination works as expected when the query is not ordered by timestamp.
timestamp
Sorry, something went wrong.
Another weird thing I'm observing is that the cursor changes when setting first to a lower number:
first
{ messages: all_chat_message_002055f4d34a8dd861270a0ebcb111acd1996ceda283dab1d0c09e59d5414e43a83f( first: 1 ) { hasNextPage endCursor documents { cursor fields { text timestamp } } } }
{ "data": { "messages": { "hasNextPage": true, "endCursor": "24gsNAQQFPnEjLRNSuQiDRSy5Zex4AKfRT2cfCCfzWXsPGzLaA9yF1BaKyPFTBS4dM7LkC95nribvpugH9dcnL92", "documents": [ { "cursor": "24gsNAQQFPnEjLRNSuQiDRSy5Zex4AKfRT2cfCCfzWXsPGzLaA9yF1BaKyPFTBS4dM7LkC95nribvpugH9dcnL92", "fields": { "text": "1", "timestamp": 1684403519921 } } ] } } }
Note how it is now 24gsNA... while it was 21Ca22... before.
24gsNA...
21Ca22...
Successfully merging a pull request may close this issue.
Request 1:
Result 1:
Request 2 (using
cursor
of the last document inafter
):Result 2: Same as above, but should have been empty page.
The text was updated successfully, but these errors were encountered: