Skip to content

How to do validation? #47

Description

@frederikhors

Since you are fighting my own battles (gqlgen and go) can I ask you how are you dealing with the hot topic of validations?

E.g. from your example:

input ImageCreateInput {
  postId: ID!
  views: Int
  originalUrl: String
}

how to validate that e.g. views is max = 30 or originalUrl != ""?

Metadata

Metadata

Labels

enhancementNew feature or requestquestionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions