The below code will show error:
await db.user.findMany({
select: {
id: false,
},
}),
reason: 'db-query-error',
model: undefined,
dbErrorCode: 'SQLITE_ERROR',
dbErrorMessage: 'near "from": syntax error',
rejectedByPolicyReason: undefined,
sql: 'select from "User" ',
It generate a select statement without any field to be selected which cause the SQL error.
The below code will show error:
It generate a select statement without any field to be selected which cause the SQL error.