How to validate ...UpdateInput
type by class-validator
and class-transformer-validator
#207
Unanswered
nqnghia285
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a issue related to validation. I use
class-validator
andclass-transformer-validator
for my project.It works with code:
But I don't know how to validate
...UpdateInput
type, because its fields are...UpdateOperationsInput
types and they haveset
field.Example:
The
MaxLength
decorator doesn't work. BecauseLaptopUpdateInput
's fields are Object type.Could you tell me solution for this issue.
Beta Was this translation helpful? Give feedback.
All reactions