Overview of gqlparser
mastergqlparser is a GraphQL parser written in Go. It is designed to mirror the graphql-js reference implementation closely while remaining idiomatic, fast, and easy to use. It is the underlying parser used by gqlgen and is intended to be server-agnostic, making it suitable for both GraphQL server implementations and client-side tooling.
Key characteristics include:
- Spec Compliance: Targets the September 2025 GraphQL specification and select portions of the Draft, based on
graphql-js v16.13.2. It supports Schema Definition Language (SDL), block strings as descriptions, and error paths & extensions. - Design Principles: Focuses on maintainability, high test coverage (self-contained tests without requiring a server), stability, and performance (minimizing allocations in hot paths).