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

Method findOne

sample/06-mongoose/src/cats/cats.service.ts:21–23  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

19 }
20
21 async findOne(id: string): Promise<Cat> {
22 return this.catModel.findOne({ _id: id }).exec();
23 }
24
25 async update(id: string, updateCatDto: UpdateCatDto): Promise<Cat> {
26 return this.catModel

Callers

nothing calls this directly

Calls 2

execMethod · 0.80
findOneMethod · 0.65

Tested by

no test coverage detected