I have been paginating fetching my documents by first reading the total attribute on DocumentList . For that I put a query limit of 1 document and then use the total attribute to carry the pagination..
However, I noticed in flutter that the total attribute shows that it apparently returns the number of documents that satisfy the query, and I can confirm that it's not true. Since I can access the whole actual number of the documents using the total attribute.
In the document_list.dart file I can see the following
final int total;```
So where is the catch?
Are you expecting the total to be 1 because you put a limit of 1?
I'm just comparing the comment on the line of code against what actually happens, so yeah
as it seems, the limit isn't included when saying matched your query
Ya, we actually mean the filter queries
Recommended threads
- context deadline exceeded
Hi, in one of my projects i continuously receive context deadline exceeded when trying to reach users API from my local machine: https://fra.cloud.appwrite.io/v...
- π Realtime Flutter SDK Crash β Realtime...
**Summary** When using Appwrite Cloud with the Flutter SDK (latest appwrite release: 21.4.0), Realtime crashes with: ```Unhandled async error: type '_Map<String...
- Realtime Connection Error After Updating...
I get the following error message now when the realtime subscription picks up a new message. There's more to the error but it makes the discord message too long...