sdy

update deleteCategory query

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