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