Closed adamnyberg closed 1 year ago
Hi @adamnyberg you need to pass data as an object property to the user.create
, read more about create
Create a single record with Prisma Client
createUser(data: { email: string; name?: string }) {
return this.prismaService.client.user.create({ data });
}
Hey,
Maybe it is something wrongly configured on my system but when I try to use the methods
create
andupdate
, typescript can not compile the project.Steps to reproduce:
AppService
inexamples/extentions/src/app.service.ts
npm run build
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Am I using the
this.prismaService.client.user.create
wrong?