graphql-scalar-types icon indicating copy to clipboard operation
graphql-scalar-types copied to clipboard

`nonNull` doesn't work with other validation

Open zhaoyi0113 opened this issue 4 years ago • 0 comments

I use nonNull to define my scalar but other validation is not checked. It seems that nonNull skips all other check.

const Source = string('Source')
  .nonNull()
  .min(1)
  .max(10)
  .regex(/[A-Z]/)
  .create();

zhaoyi0113 avatar Dec 17 '19 00:12 zhaoyi0113