generator-nest-js-boilerplate
Version:
This generator will help you to build your own Nest.js Mongodb API using TypeScript 4
16 lines (13 loc) • 323 B
text/typescript
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function main() {}
main()
.then(async () => {
await prisma.$disconnect();
})
.catch(async (e) => {
// eslint-disable-next-line no-console
console.error(e);
await prisma.$disconnect();
process.exit(1);
});