Replies: 1 comment 8 replies
-
Your goal is to hide validation error? How would you then know what was the reason of form submit error, etc.? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Stripped down code:
Example input type:
Here's what I get when I try to submit a bad phone number on a field with
I read in the docs that apollo server can automatically convert the validation error to the correct error and handles sending it back just fine but I'd like to avoid apollo server if possible. Do I need to write some sort of middleware for this? Is that all the apollo package is doing? I know that detailed validation errors are there. I've seen class-validator output them when working with it directly. Any guidance would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions