guys, I have a question - I need to nullify blank strings before checking if schema contract passes - is it possible to do that on the backend?
if not, then it would be good at least to throw an error while parsing scalar with field name, so it not Cannot convert " " to String but Last name can't be blank
Yes, it's possible. I implemented that sort of thing using directives to tag arguments in the schema which need checking. The :apply-field-directives option to schema compilation lets you modify the context based on the directives specified. I wrote a wrapper for all my resolver functions that looks for instructions in the context left by the apply-field-directives function and checks or modifies arguments as required before running the resolver function.
thank you, I'll try that