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
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() ??