[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
- Terraform tablesdb_column type inconsist...
Hi, I am trying out the new terraform provider for appwrite that was introduced a few weeks back. As a first step I wanted to import our existing databases into...
- Payment problems
Its really beginning to frustrate me, last month I was on Pro plan on Appwrite cloud, I chose the option to downgrade next month(this one) to Free plan, and tha...
- Export issue
I just hit my free appwrite limit (500k reads) I'm willing to switch to local db but I can't export the db data from console. I'm getting: 402 Database reads l...