Idea: class-validator -> directive #322
Labels
Community 👨👧
Something initiated by a community
Enhancement 🆕
New feature or request
Out of scope ✖️
Proposal doesn't fit in project goals
I know directives aren't supported yet, but one sucky thing I've noticed is when you use class-validators and the front-end passes invalid data that fails for graphql input validation + class-validation errors, you'll get the graphql error first, then re-submit and get the class-validation error.
What would be cool is that if/when directives get supported, that the following could happen:
Would generate something like:
Obviously, this is #goals, but just having directives would be a one up.
Even this would be cool:
And potentially allowing for:
Even this would be cool:
The text was updated successfully, but these errors were encountered: