Hey guys, I want to understand how I can use and or inside query. here is my example
$database->listDocuments(
"*****",
"****",
[
$this->q->equal("name", $name),
$this->q->equal("age", $age)
]
);
its I think for and (name and age ), what about (name or age), incase age is empty. for example if i have ```[{"name":"Aron", "age": "23"}, {"name":"kebe", "age": "26"}, {"name":"josi", "age": "27"}, {"name":"abela", "age": "23"}]
giving Aron and 23 i want to get
[{"name":"Aron", "age": "23"}, {"name":"abela", "age": "23"}]
thanks
Logical OR like that isn't supported. You might want to 👍 this issue: https://github.com/appwrite/appwrite/issues/2740
Recommended threads
- listRows result parsing issue
I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON: in " Future<models.RowList> listRows()" { "total" :...
- Index for combination of columns
How am i suppposed to apply index so that combination of two columns alwasy remain unique in appwrite table though console
- Broken Flutter SDK >=24.1.0
Row.fromMap now does: ``` data: Map<String, dynamic>.from(map["data"] ?? {}) ``` But Appwrite Cloud TablesDB row responses return custom row columns flattene...