I have this code (also attached image): const getAllUserOrders = databases.listDocuments(process.env.DB, process.env.DB_ORDERS, [ Query.equal("userId", userId), Query.equal("status", "active") ])
And i want the Query.equal to retrive either "active" or "expired"
How can i achive this?
You'd do Query.equal("status", ["active", "expired"]), arrays can be used to specify multiple values in some queries
thanks I'll try that
Recommended threads
- support counts
I want just want number of rows i have matching few conditions, if databse.count was there then will had saved few resources, instead using databse.listrows
- Cannot use createdBefore query on bulk d...
sdk: dart version: 19.2.1 ```final timestamp = DateTime.timestamp() .subtract(const Duration(days: 1)) .toIso8601String(); await databas...
- Retrieving items from appwrite collectio...
Hello team, I started experiencing a weird bug yesterday. If I add multiple new items to a collection on the same day, it doesn’t show up in my app when I fetc...