Prepared statement returns undefined
I have the following server action:
When I define the prepared statement as
I get the user back.
But when I define the statement as
I get undefined.
Why is that? What is wrong with the statement using
.findFirst()
instead of .select()
??1 Reply
You can try to look at the generated SQL to find the issue.
turn the logger on in the drizzle config like this:
And check for differences.