How can I get nested data to be inside the parent object
Hey! I need to map some sports game data onto a databse. Here is my schema:
How can I fetch a game and get it's home and away teams using the select() API?
This would be the optimal response:
4 Replies
i think you can use like this
i have ways using sub query
Three queries.. idk...
when it was possibly to use alias in left join i won't be 3 query
but i searched in drizzle types i cannot find alias props in left join method
or you can use sql``
Probably will have to use SQL stings.
This is so basic though, you'd think the they would've thought about it