Last active
August 13, 2020 22:48
-
-
Save nmchenry01/735ccf7c7d22aaa7b8b690c4318f52f1 to your computer and use it in GitHub Desktop.
The first Prisma create example for "Prisma vs. TypeORM"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const createCompany = async (prisma: PrismaClient) => { | |
await prisma.company.create({ | |
data: { | |
name: 'Acme', | |
}, | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment