Back

Filtering by amount of relation items

  • 0
  • Web
tc7101
13 Feb, 2024, 23:06

Is there a way to build a query, to filter by the length of an array?

My collection "a" has an relationship to a collection "b". It is a one to many relationship. Now I would like to filter all items from collection "a" which has more then one "b" item.

TL;DR
Developers are asking if there is a query to filter by the length of an array in a one-to-many relationship. They want to filter items in collection "a" that have more than one item in collection "b".
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