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

Method findAll

sample/06-mongoose/src/cats/cats.service.ts:17–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 }
16
17 async findAll(): Promise<Cat[]> {
18 return this.catModel.find().exec();
19 }
20
21 async findOne(id: string): Promise<Cat> {
22 return this.catModel.findOne({ _id: id }).exec();

Callers 2

Calls 2

execMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected