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
- Attach Dart debugger for locally deploye...
Hello there, I was wondering if it is possible to attach debugger to dart function, that I run locally. It would make development much easier :-). Thank you.
- total parameter not working correctly in...
Hello Appwrite team, I'm experiencing issues with the total parameter in the listRows() method (TablesDB) across multiple SDKs. **Issue 1**: Node.js SDK (node...
- Relationship lists aren't showing
In flutter, when I perform a listRows function for my table which contains various relationships in addition to normal data, I am not getting the relationships ...