{"library":"graphql-document-analyzer","type":"library","category":null,"description":"A resilient GraphQL document analyzer that extends GraphQL's built-in `parse` to gracefully handle validation errors, top-level comments, and invalid sections. Unlike the standard parser, it never throws on malformed input, instead representing invalid parts as `InvalidOperationDefinition`, `InvalidFragmentDefinition`, and `Ignored` nodes. It also supports interpolation with previous valid revisions to recover approximate ASTs for in-progress edits, a section-aware visitor, and a print function that preserves all original content including comments and invalid parts. The package is currently at version 0.7.0 and ships TypeScript type definitions.","language":"javascript","status":"active","version":"0.7.0","tags":["javascript","graphql","document","analyze","parse","print","visit","resilient","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install graphql-document-analyzer","imports":["import { analyze } from 'graphql-document-analyzer'","import { interpolate } from 'graphql-document-analyzer'","import { print } from 'graphql-document-analyzer'","import { visit } from 'graphql-document-analyzer'"]},{"cmd":"yarn add graphql-document-analyzer","imports":[]},{"cmd":"pnpm add graphql-document-analyzer","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"graphql-document-analyzer","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}