many-to-one transaction with select API and Postgres
Hey! I am trying to make a many-to-one transaction with my Postgres database and the select API. Here are some of my table definitions
(I'm sending query in the next message)
2 Replies
Here is my query:
But it only returns it as one-to-one
The documentation mentions an
.all()
method but that does not appear to exist. The snippet is also quite cursed mentioning variables that don't exist and not containing all imports.Drizzle ORM - Joins
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.