sdy

init addCategory

1 +type Mutation {
2 + addCategory(name: String): Category!
3 +}
1 +import { prisma } from "../../../middlewares";
2 +
3 +export default {
4 + Mutation: {
5 + addCategory: async (_, args) => {
6 + const { name } = args;
7 + },
8 + },
9 +};