nested raw query errors
I get
Do I need to escape this further?
Solution:Jump to solution
What version of Prisma ORM are you using? Have you tried TypedSQL? https://www.prisma.io/blog/announcing-typedsql-make-your-raw-sql-queries-type-safe-with-prisma-orm
Prisma
Announcing TypedSQL: Make your raw SQL queries type-safe with Prism...
Prisma ORM now supports the ability to write raw sql queries and have the inputs and outputs be fully type-safe! Get the benefit of a high-level API with the power of raw SQL.
3 Replies
I guess i have to use prisma.raw but is there a way to do that and escape rootCommentId
Solution
What version of Prisma ORM are you using? Have you tried TypedSQL? https://www.prisma.io/blog/announcing-typedsql-make-your-raw-sql-queries-type-safe-with-prisma-orm
Prisma
Announcing TypedSQL: Make your raw SQL queries type-safe with Prism...
Prisma ORM now supports the ability to write raw sql queries and have the inputs and outputs be fully type-safe! Get the benefit of a high-level API with the power of raw SQL.
this is really cool, let me play with this
nice, I got it working
this is awesome, tyvm
is there a good way to export the type?
got it