Skip to content

Instantly share code, notes, and snippets.

View jonattasmoraes's full-sized avatar
Studying

Jônattas Moraes jonattasmoraes

Studying
View GitHub Profile
const { PrismaClient } = require("@prisma/client");
const prisma = new PrismaClient();
async function main() {
try {
const mousesCategory = await prisma.category.create({
data: {
name: "Mouses",
slug: "mouses",