Flutter Developer
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.
Votes
0
Replies
5
Participants
Unknown
Messages
6
Flutter Developer
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.
Admin
when you fetch, the related documents should be returned automatically...what problem are you facing?
Rank 2: Process
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 ?
Admin
Rank 2: Process
got it .. use select([]) right?
Admin
No, it's not really supported at the moment