Your raw query had an incorrect number of parameters. Expected: `0`, actual: `2`. Prisma Prepared Statements

Viewed 105

Please go soft on me this is my first time asking here questions. I am having a scenario that is causing my query to fail when I try to template it with variables. But when I pass in the static values it works. The first image shows a query with static values

Code Block logic with static values

the second image is the response of the above logic. Response while using static values

Now observe what happens when I change the query to use the templated prepared statements. Templated code block with variables

The response I get Templated code response

0 Answers
Related