[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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...