I want my client to catch errors on my queries and mutation ahead of time (preferably while compilation). Is there any way I can provide schema to the client so that it can validate queries and mutations using it.
You could use eslint with a plugin like this: GitHub - B2o5T/graphql-eslint: ESLint parser, plugin and set rules for GraphQL (for schema and operations). Easily customizable with custom rules. Integrates with IDEs and modern GraphQL tools.
1 Like
Thanks, I think this would do the trick!!