how to more attribute for searching if (searchQuery != null && searchQuery.isNotEmpty) {
queries.add(Query.search('phone', searchQuery));
}
TL;DR
Developers are seeking help to add more attributes for searching in their code. They want to include additional attributes like name and date of birth along with the existing attribute 'phone'. They are asking how to modify the code to allow for multiple search attributes. Here is a sample snippet of their existing code for reference:
``` if (searchQuery != null && searchQuery.isNotEmpty) {
queries.add(Query.search('phone', searchQuery));
}
```
Solution: To add additional search attributes like name and date of birth, developers can simply replicate the existing code snippet for each attribute they want to search for. For example:
``` if (searchlike name dob
Recommended threads
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...