Back

Feature Request: Query of number of items in an Array Attribute

  • 0
  • Databases
YahalomS
29 Aug, 2024, 22:12

It would be nice to have a way to query the number of items in an array attribute.

My example: I have a collection where one of the attributes is a list of Strings, holding changing number of images. I would like to query the collection (list documents) and return only the documents contain more than 1 url, list them in the front end

Advanced implementation of this feature: If I could create several Queries of this kind, I could, for example: query all the documents have: More than 3 items And Less than 7 items.

Thanks.

TL;DR
Feature request to add a query function to determine the number of items in an array attribute. Developers would like to be able to filter documents based on the quantity of items in the array attribute, such as returning only documents with more than a certain number of items. Possible advanced implementation would allow for multiple queries with specific quantity criteria.
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