sdy

create DM.js

1 +import { prisma } from "../../utils";
2 +
3 +export default {
4 + DirectMessage: {
5 + sender: (parent) =>
6 + prisma.directMessage
7 + .findOne({ where: { id: parent.id } })
8 + .directMessage(),
9 + },
10 +};