Hi, I have a one to many relationship between 2 collections. (Products and Catrgories) How can I get the list of documents (Products) that are related to the other collection (categories). I'm using the Futter SDK.
when you fetch, the related documents should be returned automatically...what problem are you facing?
its returning automatically.. how can i make it to return only the ID of those related documents and not the entire related document?? ie, imagine if products have a relationship category and category is another collection with its own attributes. while fetching products , i only need to get the Id of its category and not the category as a whole. // how to acieve this ?
got it .. use select([]) right?
No, it's not really supported at the moment
Recommended threads
- Relations within the same table
Hello, I'm currently building a sort of dictionary (a literal one) and thus I need words (which is one single table of words in my database) to be able to have ...
- [SOLVED] Query.search() returning all ro...
When I use Query.search() instead of returning rows with the keywords provided it just returns all the rows in the table.
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...