sdy

add deleteCategory resolver

......@@ -4,6 +4,11 @@ export default {
Mutation: {
deleteCategory: async (_, args) => {
const { name } = args;
return prisma.category.delete({
where: {
name,
},
});
},
},
};
......