This is the query that I am executing
const jobs = await this.prisma.$executeRaw`
SELECT
name
FROM
jobs
WHERE
status = 'ACTIVE'`;
but instead of getting the results that macth this query I only get a number, so the type of jobs
is number and its value is 1. I am using postgresql
2
Answers
Problem was that I was using wrong method so instead of
.$executeRaw
I should have used$.queryRaw
Try modifying your code to use the
$queryRaw
method instead;