query.with like results for innerJoin

If I so something like:

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 How do I use `where` inside `with`?
Was this page helpful?