sdy

remove getUser

1 -type Query {
2 - getUser(id: Int!): User!
3 -}
1 -import { prismaClient } from "../../../middlewares";
2 -
3 -export default {
4 - Query: {
5 - getUser: async (_, args) => {
6 - const { id } = args;
7 - return prismaClient.user.findOne({
8 - where: {
9 - id,
10 - },
11 - });
12 - },
13 - },
14 -};