total parameter not working correctly in listRows() (Node.js & Dart SDKs)
- 0
- Flutter
- Web
- Databases
- Cloud
- Functions
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-appwrite: ^21.1.0)
The total parameter doesn't affect the response as expected. According to the documentation, when total: false, the response should return total: 0. However, I'm getting the actual count regardless of the parameter value.
// Both calls return the same result (e.g., total: 700)
const response1 = await tables.listRows({
databaseId: 'main',
tableId: 'users',
queries: [sdk.Query.limit(1)],
total: true, // Returns total: 700
});
const response2 = await tables.listRows({
databaseId: 'main',
tableId: 'users',
queries: [sdk.Query.limit(1)],
total: false, // Also returns total: 700, expected: 0
});
Issue 2: Dart SDK (dart_appwrite: 20.1.0)
When trying to use the total parameter in Dart cloud functions, I get a type error:
type 'bool' is not a subtype of type 'Iterable<dynamic>'
Could you please investigate this issue?
Thank you!
Recommended threads
- Problem with Google Workspace at DNS Rec...
Hello, I bought a domain at Namecheap, and Google Workspace used to work there, but now that I switched from Custom DNS to Appwrite's nameservers, it doesn't w...
- Flutter OAuth2 webAuth Bug?
I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ...
- Function running for more than 2 hours i...
This is my projectID: 669fe01b003800dd0503 Cloud functionID is 696ea05400147eb8eb3b I hope this doesn't count against my GB-hours?