[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
- I recently switched to TablesDb. When li...
olddb.list_documents( queries =[ Query.order_desc("timestamp"), Query.equal("isPosted",[False]) ] ) Above works fine and reruns documents But below don't return...
- Database error validating 'min' and 'max...
I keep seeing an error when I try to add a column to a database table within the AppWrite cloud UI. I also see this error when trying to create or update a reco...
- Fine grained permissions for webRTC hand...
Hi, I am building a WebRTC P2P app for a university project and have hit a security limitation regarding permissions for anonymous users. The Architecture: We ...