
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
- my database attribute stuck in processin...
when i created attributes in collection 3 of those attributes become "processing", and they are not updating, the worst thing is that i cant even delete them s...
- Forever Processing Issue
I encountered an issue when creating attributes in the collections . if you create an attribute of type string for example and choose a size of 200 or 250 or a...
- Realtime Disconnects and Error: INVALID_...
Hi! I just want to ask here if there's any workaround with the disconnect issues we're encountering when subscribing to realtime events in react native using ex...
