Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -4,6 +4,11 @@ export default { | ... | @@ -4,6 +4,11 @@ export default { |
4 | Mutation: { | 4 | Mutation: { |
5 | deleteCategory: async (_, args) => { | 5 | deleteCategory: async (_, args) => { |
6 | const { name } = args; | 6 | const { name } = args; |
7 | + return prisma.category.delete({ | ||
8 | + where: { | ||
9 | + name, | ||
10 | + }, | ||
11 | + }); | ||
7 | }, | 12 | }, |
8 | }, | 13 | }, |
9 | }; | 14 | }; | ... | ... |
-
Please register or login to post a comment