Prisma ORM · Prisma Client queries
Update a record
Change fields of one record.
await prisma.user.update({ where: { id: 1 }, data: { name: "Ada Lovelace" } });
Official Prisma ORM documentation
Prisma ORM · Prisma Client queries
Change fields of one record.
await prisma.user.update({ where: { id: 1 }, data: { name: "Ada Lovelace" } });
Official Prisma ORM documentation
Was this page helpful?