sandeephifxOriginal post
Flutter Developer
Can we do Query.search in two attributes using “OR”
like this
database.listDocuments('employee_collection', [
Query.search('employee_name',searchtext),
Query.search('employee_id', searchtext),
]);
Summary
It seems like the user wants to know if it's possible to perform a search query with multiple attributes using "OR". The recommended workaround is to add a separate attribute that combines all the data needed for searching. Additionally, a function can be used to automatically fill in this attribute to avoid manual input.