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

Closed
@brendamckenne

Description

@brendamckenne

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions