Replies: 1 comment
-
Hi @y0unghe 👋 , this is not supported, for such relationship to work you'd need to have an intermediary class Card extends Schema {
// ...
}
class Hand extends Schema {
@type([Card])
cards = new ArraySchema<Card>();
}
class Player extends Schema {
@type({ map: Hand })
playerHands = new MapSchema<Hand>();
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to make a map like below
But the error like
Beta Was this translation helpful? Give feedback.
All reactions