9 lines
344 B
TypeScript
9 lines
344 B
TypeScript
import { PrismaClient } from '@prisma/client'
|
|
const prisma = new PrismaClient()
|
|
|
|
async function main() {
|
|
const projects = await prisma.project.findMany({ select: { title: true, techStack: true, year: true, highlights: true }})
|
|
console.log(JSON.stringify(projects, null, 2))
|
|
}
|
|
main().catch(console.error).finally(() => prisma.$disconnect())
|