Showing
1 changed file
with
4 additions
and
6 deletions
... | @@ -2,13 +2,11 @@ import { prisma } from "../../utils"; | ... | @@ -2,13 +2,11 @@ import { prisma } from "../../utils"; |
2 | 2 | ||
3 | export default { | 3 | export default { |
4 | User: { | 4 | User: { |
5 | - rooms: (parent) => | 5 | + groups: (parent) => |
6 | - prisma.user.findOne({ where: { id: parent.id } }).rooms(), | 6 | + prisma.user.findOne({ where: { id: parent.id } }).groups(), |
7 | messages: (parent) => | 7 | messages: (parent) => |
8 | prisma.user.findOne({ where: { id: parent.id } }).messages(), | 8 | prisma.user.findOne({ where: { id: parent.id } }).messages(), |
9 | - sender: (parent) => | 9 | + directMessages: (parent) => |
10 | - prisma.user.findOne({ where: { id: parent.id } }).sender(), | 10 | + prisma.user.findOne({ where: { id: parent.id } }).directMessages(), |
11 | - receiver: (parent) => | ||
12 | - prisma.user.findOne({ where: { id: parent.id } }).receiver(), | ||
13 | }, | 11 | }, |
14 | }; | 12 | }; | ... | ... |
-
Please register or login to post a comment