graphql-constraint-directive
graphql-constraint-directive copied to clipboard
Add support for custom scalars
Can we think about adding support for scalars as well?
This shall help speed up development and validations.
+1 It will be great to be able to validate an array of UUIDs
Example in nestjs graphql. GraphQLUUID is a type from graphql-type-uuid
@Field(returns => [GraphQLUUID])
@Directive('@constraint(minItems: 1)')
public categories: string[];