generated from fahricansecer/boilerplate-be
@@ -0,0 +1,20 @@
|
||||
const { PrismaClient } = require('./node_modules/@prisma/client');
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
async function main() {
|
||||
const scene = await prisma.scene.findFirst({
|
||||
where: {
|
||||
id: "02123cc4-b110-454e-8869-0dbe594cdc61" // from the logs
|
||||
},
|
||||
include: {
|
||||
mediaAssets: true
|
||||
}
|
||||
});
|
||||
console.dir(scene, { depth: null });
|
||||
}
|
||||
|
||||
main()
|
||||
.catch(e => console.error(e))
|
||||
.finally(async () => {
|
||||
await prisma.$disconnect();
|
||||
});
|
||||
Reference in New Issue
Block a user