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

Method findAll

sample/22-graphql-prisma/src/posts/posts.service.ts:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 }
17
18 async findAll(): Promise<Post[]> {
19 return this.prisma.post.findMany({});
20 }
21
22 async create(input: NewPost): Promise<Post> {
23 return this.prisma.post.create({

Callers 1

postsMethod · 0.45

Calls 1

findManyMethod · 0.65

Tested by

no test coverage detected