explore using envelop for validation
What if we could annotate input fields/args in SDL (or extension fields) with validation rules e.g. string length 50 and enforce the validation in the extended validation phase 🤔
People also use custom scalars for this 🤔
I personally prefer doing it within resolvers and avoid adding any scalars.
Talked with someone on Crisp who wishes to have something like that.
I think we could support all of those flows and let people choose what they want, but still give our opinion and recommendations on how we personally would do stuff.
I think for simple validations it could be nice. Was thinking also about doing that as scalar arguments (so it doesn't run as part of the field resolver). Not sure if it's possible