Are there server side validation directives for GraphQL?

Hey @abhijit-kar,
Currently we don’t have this feature in GraphQL. But we’re planning to add a directive like @validate or @constraint that’ll enable validation for scalar/list fields. (min/max/includeMin/includeMax) for Int/Float/DateTime/list and (min/max length, regex) for String.

4 Likes