query.with like results for innerJoin

If I so something like:
db.select(Product).innerJoin(Category)// and the rest
db.select(Product).innerJoin(Category)// and the rest
I get an array that looks like {Product: {}, Category: {}}[] But is there a way to return an array of products that has a an attibute of Category? Like we do with query() and with(). The reason for the question is the issue with where inside with https://discord.com/channels/1043890932593987624/1210347617364484096/1210347617364484096
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server