graphpql / graphpinator

:zap::globe_with_meridians::zap: Easy-to-use & Fast GraphQL server implementation for modern PHP. Includes features from latest draft, middleware directives and modules with extra functionality.

Home Page:https://github.com/graphpql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InputField customValidation function

peldax opened this issue · comments

Add option to declare user-defined validation functions to inputFields.

Directives can be used as a validation layer (see constraint-directives), but sometimes a simple and/or very specialized validation is required for a field and it does not make sense to create custom directive for such case.