darkmessOriginal post
Rank 2: Process
sdk: dart
version: 19.2.1
Plain text
.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)Summary
Issue with using 'createdBefore' query on bulk delete; it doesn't work as expected. Solution: Use 'lessThanEqual' query with '$createdAt' instead.