huv1k/nexus-arguments-validation

Won't trigger on `t.crud.*`

Opened this issue ยท 0 comments

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
      },
    })