MCPcopy Create free account
hub / github.com/prisma/prisma-examples / deletePost

Method deletePost

orm/nest/src/app.controller.ts:122–126  ·  view source on GitHub ↗
(@Param('id') id: string)

Source from the content-addressed store, hash-verified

120
121 @Delete('post/:id')
122 async deletePost(@Param('id') id: string): Promise<PostModel> {
123 return this.prismaService
124 .extendedPrismaClient()
125 .post.delete({ where: { id: Number(id) } });
126 }
127
128 @Put('/post/:id/views')
129 async incrementPostViewCount(@Param('id') id: string): Promise<PostModel> {

Callers 1

mainFunction · 0.45

Calls 2

extendedPrismaClientMethod · 0.80
deleteMethod · 0.65

Tested by

no test coverage detected