I have the following problem. I try to manage a n to m structure with firebase. Therefore i made three collections.
collections
|-----cards
|----name
|----text
|-----cardlist
|----name
|----numberOfCards
|-----card_cardList
|----cardId
|----cardListId
|----number
Now I have the id of a cardList
and my goal is to get all the cards which are in this list. To get them from the card_list
collection i made this collection('card_list', q => q.where('cardListId', '==', myId)
.
After that i should somehow map the value number
with the cards values which I need to get somehow.
Does anyone have a suggestion how to do this?
Edited: card_cardList
is the collection which shows the n to m relation between cards and cardlist