Won't trigger on `t.crud.*`
Opened this issue ยท 0 comments
LaRuaNa commented
Hi @huv1k , thanks for that lib, I really like your approach ๐
I'm not sure whether I can't make following snippet work or validationSchema
doesn't get triggered in combination of t.crud. ๐ค
t.crud.createOneUser({
alias: 'signupUser',
validationSchema: ValidateEmail,
async resolve(root, args, ctx, info, originalResolve) {
console.log('logic before the resolver')
const res = await originalResolve(root, args, ctx, info)
console.log('logic after the resolver')
return res
},
})