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

Method getMany

sample/04-grpc/src/hero/hero.controller.ts:32–40  ·  sample/04-grpc/src/hero/hero.controller.ts::HeroController.getMany
()

Source from the content-addressed store, hash-verified

30
31 @Get()
32 getMany(): Observable<Hero[]> {
33 const ids$ = new ReplaySubject<HeroById>();
34 ids$.next({ id: 1 });
35 ids$.next({ id: 2 });
36 ids$.complete();
37
38 const stream = this.heroesService.findMany(ids$.asObservable());
39 return stream.pipe(toArray());
40 }
41
42 @Get(class="st">':id')
43 getById(@Param(class="st">'id') id: string): Observable<Hero> {

Callers

nothing calls this directly

Calls 4

findManyMethod · 0.65
nextMethod · 0.45
completeMethod · 0.45
pipeMethod · 0.45

Tested by

no test coverage detected