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
- Retrieving Data From Backups
Hiya, I have a user requesting for data they accidentally deleted. I don't have document history built into my app. Is there a way to extract data from the auto...
- Help
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.