Diagnostics
GraphQL Analyzer provides real-time diagnostics as you type, showing validation errors and lint warnings inline in your editor.
What’s checked
Section titled “What’s checked”- GraphQL spec validation — Full GraphQL spec validation via the project’s analysis layer
- Schema type checking — Fields, arguments, types validated against your schema
- Lint rules — Configurable rules for best practices
- Position-accurate — Correct line/column even for embedded GraphQL in TypeScript/JavaScript
How it works
Section titled “How it works”File opened → Full validationFile changed → Re-validate changed document onlyFile saved → Re-validate changed documentSchema changed → Re-validate all documentsOnly the file you’re editing is recomputed — the rest of the project is cached. This keeps diagnostics fast even in large codebases.
Performance
Section titled “Performance”By default, the LSP runs only fast, per-document rules in real-time. Expensive project-wide rules (like noUnusedFields) are disabled in the LSP and can be run via the CLI instead.
See Performance Tuning for configuration.