Back

Querying a string array attribute

  • 0
  • Web
Phil
17 Nov, 2023, 16:54

I have a collection that has a string array, and when I use Query.equal it returns nothing. Do I need to use Query.search and do a fulltext index instead?

TL;DR
Currently, there is no official support for querying string arrays in Appwrite. However, there is a workaround available using a full-text index and the search query. This workaround is not officially supported. If you need to query a string array, consider using Query.search instead of Query.equal and utilizing a full-text index.
Drake
17 Nov, 2023, 20:46

Queries on arrays are coming soon: https://github.com/appwrite/appwrite/issues/2838.

There's a hack that uses a full text index and the search query, but that's not officially supported

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