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

More prisma client queries commands

All prisma client queries commands · Prisma ORM cheatsheet

Was this page helpful?