Files
ContentGen_BE/test-tweet.js
Harun CAN 9486f86cca
Some checks failed
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled
main
2026-04-05 20:37:15 +03:00

14 lines
332 B
JavaScript

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());