sdy

init searchUser

type Query {
searchUser(name: String!): [User!]!
}
import { prisma } from "../../../middlewares";
export default {
Query: {
searchUser: async (_, args) => {
const { name } = args;
const user = await prisma.user.findOne({});
},
},
};