MCPcopy Create free account
hub / github.com/prisma/prisma-examples / posts

Method posts

orm/nest-graphql/src/resolvers.user.ts:45–51  ·  view source on GitHub ↗
(@Root() user: User, @Context() ctx)

Source from the content-addressed store, hash-verified

43
44 @ResolveField()
45 async posts(@Root() user: User, @Context() ctx): Promise<Post[]> {
46 return this.prismaService.extendedPrismaClient().post.findMany({
47 where: {
48 authorId: user.id,
49 },
50 });
51 }
52
53 @Mutation((returns) => User)
54 async signupUser(

Callers 7

getPostsByUserFunction · 0.80
prisma.test.tsFile · 0.80
mainFunction · 0.80
prisma.test.tsFile · 0.80
mainFunction · 0.80
mainFunction · 0.80
prisma.test.tsFile · 0.80

Calls 2

ContextInterface · 0.90
extendedPrismaClientMethod · 0.80

Tested by

no test coverage detected