Hi, I have switched from yup to this generator, as I want universal validation, and prisma-graphql only supports class-validator. However, this generator only generates the base models.
Now it is not possible use any of the models in mutations as the validator checks every property, even though I am in partial update mode.
Example: With the yup generator I was simply able to pick the UserUpdateInput version to support partial updates.
Suggested solution
Generate all possible models from every resolver that prisma-graphql generates.
Problem
Hi, I have switched from yup to this generator, as I want universal validation, and prisma-graphql only supports
class-validator
. However, this generator only generates the base models.Now it is not possible use any of the models in mutations as the validator checks every property, even though I am in partial update mode.
Example: With the yup generator I was simply able to pick the
UserUpdateInput
version to support partial updates.Suggested solution
Generate all possible models from every resolver that prisma-graphql generates.