sdk: dart version: 19.2.1
TypeScript
.subtract(const Duration(days: 1))
.toIso8601String();
await database.deleteRows(
databaseId: Platform.environment['DATABASE_ID']!,
tableId: Platform.environment['TABLE_ID']!,
queries: [Query.createdBefore(timestamp)],
);```
This code fails with: AppwriteException: general_query_invalid, Invalid query method: createdBefore (400)
TL;DR
Issue with using 'createdBefore' query on bulk delete; it doesn't work as expected. Solution: Use 'lessThanEqual' query with '$createdAt' instead. 29 Oct, 2025, 11:13
Are you using Cloud or self-hosted? If self-hosted, which version?
29 Oct, 2025, 11:28
This also doesn’t work for me on Cloud. But using lessThanEqual query with $createdAt does work.
29 Oct, 2025, 17:12
self-hosted version 1.8.0
Recommended threads
- I'm getting an error on the console "j?....
On my self hosted instance version 1.8.1 the console is giving me this error when trying to view the rows for a table I recently created. My application is read...
- local build `composer installer:dev` iss...
setup - dev container (default linux universal) WSL (test with gh codespace too) - php 8.5.7 - all extensions installed - `composer install` fine - `composer...
- Websites hosted on my appwrite sites hav...
Hello, all my websites hosted on appwrite sites are not running I am getting this message "This site can’t be reached drivehub.appwrite.network took too long t...