Prisma ORM · Prisma Client queries

Create a record

Insert a row and get it back, including generated fields.

const user = await prisma.user.create({
  data: { email: "[email protected]", name: "Ada" },
});

Official Prisma ORM documentation

More prisma client queries commands

All prisma client queries commands · Prisma ORM cheatsheet

Was this page helpful?