Back

how to search list collections

  • 0
  • Databases
  • Web
BloodThermic
17 Jun, 2023, 03:40

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.
Drake
17 Jun, 2023, 04:13

For search, use the search param rather than queries

BloodThermic
17 Jun, 2023, 04:16

ty

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