Relational query problem
My goal is to get object of this shape:
Product has relation to
Product has relation to
images - one-to-many,
and according to the docs: https://orm.drizzle.team/docs/joins#many-to-one-example
I should be able to do this:
(using postgres)
However, apparently, methodall()does not exist and I get an error:db.select(...).from(...).leftJoin(...).all is not a function.
If I'm doing something wrong please tell me.