sdy

update deleteCategory query

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