Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
cats.service.spec.ts
File · 0.45
cats.controller.spec.ts
File · 0.45
Calls
2
exec
Method · 0.80
find
Method · 0.45
Tested by
no test coverage detected