[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
- Bug: When creating a table, table name i...
I created a table with a typo. my_taable .... then my code couldn't find it. i updated table name and still couldn't find it. the table name doesn't update. i h...
- unexpected row_invalid_structure error
In images you can see both my code,error, column schema I do have timezone in table schema but still while creating a row i am receving row_invalid_structure e...
- Internal 500 Server Error
I don't have much information but I am unable to create anything on database, Auth users are creating but not able to fetch into database
