stepci / garph

Fullstack GraphQL Framework for TypeScript
https://garph.dev
MIT License
1.31k stars 17 forks source link

Validation #25

Closed mishushakov closed 1 year ago

mishushakov commented 1 year ago

How this might look in Garph:

const queryType = g.type('Query', {
  greet: g.string().validate(s => s.length > 50)
})
mishushakov commented 1 year ago

Validation can be done with scalars, so this shouldn't be an issue