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
- Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...
- Missing Invoice
Hi! I need help with billing on my account (marelu@gmail.com). I have never received a single invoice by email. My organization has been on the Pro plan since...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...