sdy

update editCategory query

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