How to search list collections? I have tired using a sting of text I just keep getting server error as my error.
TypeScript
"648aace70b49cf3fe136",
Query.search("name", `${accountId}`)
);```
TL;DR
To search list collections, use the "search" parameter instead of queries. In your code, make sure to replace the "name" field with the desired field you want to search in. Also, ensure that the value you pass into the search function is a string. If you're getting a "server error," double-check your code for any mistakes or try troubleshooting the issue with your server.For search, use the search param rather than queries
ty
Recommended threads
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Failed to create function
Hey everyone 👋 I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...