sdy

update message.js

......@@ -4,7 +4,7 @@ export default {
Message: {
sender: (parent) =>
prisma.message.findOne({ where: { id: parent.id } }).sender(),
room: (parent) =>
prisma.message.findOne({ where: { id: parent.id } }).room(),
group: (parent) =>
prisma.message.findOne({ where: { id: parent.id } }).group(),
},
};
......