Group.js 275 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 import { prisma } from "../../utils"; export default { Group: { participants: (parent) => prisma.group.findOne({ where: { id: parent.id } }).participants(), messages: (parent) => prisma.message.findOne({ where: { id: parent.id } }).messages(), }, };