generated from fahricansecer/boilerplate-be
This commit is contained in:
12
test-script.ts
Normal file
12
test-script.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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(); });
|
||||
Reference in New Issue
Block a user