Improve error handling for incorrect raw parameters #2561
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
tech/engines
Issue for tech Engines.
tech/typescript
Issue for tech TypeScript.
topic: raw
$queryRaw(Unsafe) and $executeRaw(Unsafe): https://www.prisma.io/docs/concepts/components/prisma-cli
Milestone
Since Beta 6, we allow parameters in
.raw
like so:While we chose an API, where each parameter is a separate function arg for
.raw
, the API could also have looked like this:However, if I provide that, I don't get a lot of help but a PANIC:
prisma/prisma-client-js#705
The text was updated successfully, but these errors were encountered: