What about creating a language service in order to provide a good validation and auto-completion to editors? Probably based on https://github.com/graphql/graphql-language-service