Skip to content

Validations doesn't work if input type has exclamation mark (!) which is a way in graphql to mark input as mandatory #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brendamckenne opened this issue Apr 11, 2020 · 1 comment

Comments

@brendamckenne
Copy link

brendamckenne commented Apr 11, 2020

The validations doesnt work with input types having "!" mark (exclamation mark)
below is example schema (note the ! mark after GroupIDInput )

type Query {
  group(id: GroupIDInput!) : Group
}


input GroupIDInput {
    name: String! @NotBlank
 }

In such cases, validations doesn't work at all.The name: String! @notblank field doesn't get validated even if left blank.

However, if we remove ! mark from GroupIDInput, everything works fine then.

@setchy
Copy link
Collaborator

setchy commented Sep 20, 2020

Closing at duplicate of #17

@setchy setchy closed this as completed Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants