signup: async (parent, args, ctx, info) => {
const password = await bcrypt.hash(args.password, 10)
const userExists = ctx.prisma.exists.User({email: "
awsd@gmail.com"})
console.log(userExists,"asdasd");
const user = await ctx.prisma.mutation.createUser({
data: { ...args, password },
})
return {
token: jwt.sign({ userId: user.id },APP_SECRET),
user,
}
},
Here is my function tho it keeps giving me this "Promise { <pending> } 'Console Data'"