Also Prisma's errors for queryRaw are super opaque...
# orm-help
t
Also Prisma's errors for queryRaw are super opaque, all you get is a generic error code and the row that failed? Really tough to figure out whether, for example, you can pass a date value as an argument to queryRaw.
r
@Tom MacWright 👋 Were you getting an error while passing a date object?
t
the errors ended up being for a number of reasons - I wasn't passing
updatedAt
, so that field was failing as non-nullable
👍 1
and I was passing a jsonb column's data as a parameter to executeRaw, and needed to do
::jsonb
to explicitly cast it
👍 1