const { PrismaClient } = require('@prisma/client'); const prisma = new PrismaClient(); async function test() { const projects = await prisma.project.findMany({ orderBy: { createdAt: 'desc' }, take: 5 }); console.dir(projects, { depth: null }); } test() .catch(console.error) .finally(() => prisma.$disconnect());