sdy

update editCategory query

1 type Mutation { 1 type Mutation {
2 - editCategory(id: String!): Category! 2 + editCategory(name: String!): Category!
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 editCategory: async (_, args) => { 5 editCategory: async (_, args) => {
6 - const { id } = args; 6 + const { name } = args;
7 }, 7 },
8 }, 8 },
9 }; 9 };
......