(@Root() user: User, @Context() ctx)
| 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( |
no test coverage detected