[SOLVED] Query does not work on collections that has relationships with other collections
- 0
- Databases
- Accounts

const res = await db.listDocuments(dbName, 'users', [
Query.equal('$id', [meta.$id]),
Query.orderDesc('recipients'),
Query.orderDesc('addresses'),
]);
console.log({ res });
This does not work.
recipients
and addresses
are separate collections that has relationship with users
I'm trying to be efficient querying users recipients
and addresses
but it seems I will need todo a separate query for recipients
and addresses
if I need to sort it.

You can read more here : https://appwrite.io/docs/databases-relationships#query

Well this url doesn't give any insights to my question

He is referring to the text: Querying is currently not available in the beta version of Appwrite Relationships but will be added in a later version.

[SOLVED] Query does not work on collections that has relationships with other collections

ok, thanks
Recommended threads
- Row with the requested ID already exists...
I’m hitting a blocking issue creating rows in Appwrite (both from the console and my React Native app). After successfully inserting the first row, every subseq...
- Query params are way too limiting in ter...
I was trying to list rows in a table that do not already exist in another table. I retrieved around 260 row IDs which are 13 characters in length each, and then...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
