I have the following function ```Future<models.DocumentList> returnAllTheTanks() async {
List<String>? tankQuery = [
Query.equal("facility_fk", facilityFk),
];
return await _manageSession.queryDocument(cTankCollection, tankQuery);
} , which is called by models.DocumentList theTankList = await returnAllTheTanks();```I get back a list whose total is 27 items which corresponds to the actual number in the web console, but when I iterate through them, I find the last two documents never make into the list. Why might this be?
Similiar issue which will help: https://discord.com/channels/564160730845151244/1136628130707157024
Instead of using a hardcoded value for the limit, consider using pagination.
Pagination reference: https://appwrite.io/docs/databases-pagination
@mauricev did this fix your issue?
Yes
thank you
[SOLVED] why is appwrite skipping documents?
Recommended threads
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...
- createCollection Deprecated
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...