Back

multiple search for different attribute

  • 0
  • Flutter
  • Cloud
Wiseman
24 Mar, 2025, 19:44

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
Wiseman
24 Mar, 2025, 19:44

like name dob

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more