MCPcopy
hub / github.com/nestjs/nest / findOne

Method findOne

sample/06-mongoose/src/cats/cats.controller.ts:22–24  ·  view source on GitHub ↗
(@Param('id') id: string)

Source from the content-addressed store, hash-verified

20
21 @Get(':id')
22 async findOne(@Param('id') id: string): Promise<Cat> {
23 return this.catsService.findOne(id);
24 }
25
26 @Post(':id')
27 async update(@Param('id') id: string, @Body() updateCatDto: UpdateCatDto) {

Callers

nothing calls this directly

Calls 2

ParamFunction · 0.90
findOneMethod · 0.65

Tested by

no test coverage detected