graphql-scalar-types
graphql-scalar-types copied to clipboard
`nonNull` doesn't work with other validation
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();