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
Prisma ORM · Prisma Client queries
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
Was this page helpful?