confuser / graphql-constraint-directive

Validate GraphQL fields
ISC License
569 stars 74 forks source link

Add support for custom scalars #62

Open shubhamprshr27 opened 3 years ago

shubhamprshr27 commented 3 years ago

Can we think about adding support for scalars as well?

This shall help speed up development and validations.

TArch64 commented 1 year ago

+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[];