How to define `PostgresJsTransaction` generic parameter based on schema?
Consider the following schema
to parameterize the database instance I can do this:
However how can I parameterize a PostgresJsTransaction based on my schemas?
How should I replace the
any
argument in the generic parameter of `PostgresJsTransaction? Thank you2 Replies
I found a way to use ExtractTablesWithRelation
Now that my PostgresJsTransction is defined as follow:
However when using
.findMany()
without specifying the columns, I get improper hinting.![No description](https://cdn.answeroverflow.com/1184336246252781618/Screenshot_2023-12-13_at_11.26.47.png)