graphql-constraint-directive icon indicating copy to clipboard operation
graphql-constraint-directive copied to clipboard

Add support for custom scalars

Open shubhamprshr27 opened this issue 3 years ago • 1 comments

Can we think about adding support for scalars as well?

This shall help speed up development and validations.

shubhamprshr27 avatar May 07 '21 11:05 shubhamprshr27

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

TArch64 avatar Jan 07 '23 16:01 TArch64