Files
Content-Hunter_BE/test-script.ts
Harun CAN dee6e29cfd
Some checks failed
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled
main
2026-03-14 14:01:01 +03:00

13 lines
392 B
TypeScript

import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function main() {
const master = await prisma.masterContent.findFirst({
orderBy: { createdAt: 'desc' },
include: { contents: true }
});
console.log(JSON.stringify(master, null, 2));
}
main()
.catch(console.error)
.finally(async () => { await prisma.$disconnect(); });