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
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- Query.search limitation
Since `string` is deprecated I used `varchar`, and now I cant use `Query.contains` , so I setup fulltext index and started using `Query.search` the issue is `Qu...