ArwanceR
DTDrizzle Team
•Created by ArwanceR on 7/26/2023 in #help
Relational query problem
My goal is to get object of this shape:
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, method all()
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.3 replies