searchUser.js 207 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 import { prisma } from "../../../middlewares"; export default { Query: { searchUser: async (_, args) => { const { name } = args; const user = await prisma.user.findOne({}); }, }, };