main
Some checks failed
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-03-22 23:34:00 +03:00
parent dee6e29cfd
commit c3d2413003
5 changed files with 56 additions and 56 deletions

23
test-query.ts Normal file
View File

@@ -0,0 +1,23 @@
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function main() {
const masterContents = await prisma.masterContent.findMany({
orderBy: { createdAt: 'desc' },
take: 5,
include: {
contents: true
}
});
console.log(JSON.stringify(masterContents, null, 2));
}
main()
.then(() => prisma.$disconnect())
.catch(e => {
console.error(e);
prisma.$disconnect();
process.exit(1);
});