
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 (search 
like name dob
Recommended threads
- 404 Collection not found
I am trying to open storage bucket in the appwrite console, when I click on bucket it says "Collection not found" Contents are loading fine in the website but n...
- webhook signature verification
I'm trying to use a payment services webhook and verifying the signture. I'm having some trouble with processing payload. the webhook.verify function in stand...
- getFilePreview returns ByteCode
I'm running this code: ```js blah = await storage.getFilePreview( import.meta.env.NEWS_IMAGES_ID, news.imageId, 0, // width (optional) 0, // h...
