/nestjs-prisma/node_modules/@prisma/client/src/runtime/core/errorRendering/throwValidationException.ts:46
throw new PrismaClientValidationError(messageWithContext, { clientVersion })
^
PrismaClientValidationError:
→ 11 const user = await prismaService.user.create({
data: {
email: "[email protected]",
type: "admin"
~~~~~~~
}
})
Invalid value for argument `type`. Expected TypeUser.
at throwValidationException (/nestjs-prisma/node_modules/@prisma/client/src/runtime/core/errorRendering/throwValidationException.ts:46:9)
/nestjs-prisma/node_modules/@prisma/client/src/runtime/core/errorRendering/throwValidationException.ts:46
throw new PrismaClientValidationError(messageWithContext, { clientVersion })
^
PrismaClientValidationError:
→ 11 const user = await prismaService.user.create({
data: {
email: "[email protected]",
type: "admin"
~~~~~~~
}
})
Invalid value for argument `type`. Expected TypeUser.
at throwValidationException (/nestjs-prisma/node_modules/@prisma/client/src/runtime/core/errorRendering/throwValidationException.ts:46:9)