So i have this database with collections user > topic > notes. Each user can have multiple topics and each topic can contain many notes. if I get user document with no queries, it fetches all of his topics and notes which I think might be slow if he has many notes. I've tried to use select query like so Query.select(['topic.*']). It doesn't return notes but also doesn't return $id of the topic document so I could get notes related to that topic. what would be the best practice here?
Queries with relationships aren't supported atm.
maybe you could add userId attribute to the topic collection and use it as a reference via the user id.
Recommended threads
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- general_bad_request when creating accoun...
I have created a new bug request, could anyone have a look - https://github.com/appwrite/appwrite/issues/11908?
- createCollection Deprecated