Created
August 13, 2020 23:35
-
-
Save nmchenry01/087968b10a64ff47e65a63216ff85ae3 to your computer and use it in GitHub Desktop.
Delete customer example for "Prisma vs. TypeORM"
This file contains hidden or 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 deleteCustomer = async (prisma: PrismaClient) => { | |
| return prisma.customer.delete({ | |
| where: { | |
| username: 'Customer4', | |
| }, | |
| }); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment