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
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...
- Appwrite exception: user_unauthorized, t...
After refreshing the app it is working perfectly