sdy

create Category parent resovler

1 +import { prisma } from "../../utils";
2 +
3 +export default {
4 + Category: {
5 + messages: (parent) =>
6 + prisma.category.findOne({ where: { id: parent.id } }).messages(),
7 + },
8 +};