MCPcopy Create free account
hub / github.com/vektah/gqlparser

github.com/vektah/gqlparser @v2.5.36

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.5.36 ↗ · + Follow
515 symbols 1,889 edges 81 files 63 documented · 12% 65 cross-repo links updated 8d agov2.5.36 · 2026-07-01★ 55934 open issues

Browse by type

Functions 429 Types & classes 86
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

gqlparser CircleCI Go Report Card Coverage Status

This is a parser for graphql, written to mirror the graphql-js reference implementation as closely while remaining idiomatic and easy to use.

spec target: September 2025 and select portions of the Draft, based on the graphql-js reference implementation graphql-js v16.13.2. This includes Schema definition language, block strings as descriptions, error paths & extension, etc. If there is a spec update or new release, please follow this process to update and submit a PR.

This parser is used by gqlgen, and it should be reasonably stable.

Guiding principles:

  • maintainability: It should be easy to stay up to date with the spec
  • well tested: It shouldn't need a graphql server to validate itself. Changes to this repo should be self contained.
  • server agnostic: It should be usable by any of the graphql server implementations, and any graphql client tooling.
  • idiomatic & stable api: It should follow go best practices, especially around forwards compatibility.
  • fast: Where it doesn't impact on the above it should be fast. Avoid unnecessary allocs in hot paths.
  • close to reference: Where it doesn't impact on the above, it should stay close to the graphql/graphql-js reference implementation.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 248
Function 181
Struct 53
TypeAlias 25
FuncType 4
Interface 4

Languages

Go96%
TypeScript4%

Modules by API surface

formatter/formatter.go61 symbols
parser/schema.go37 symbols
ast/collections.go26 symbols
validator/rules/overlapping_fields_can_be_merged.go25 symbols
parser/query.go25 symbols
validator/imported/export.js20 symbols
validator/core/walk.go20 symbols
gqlerror/error.go19 symbols
lexer/lexer.go17 symbols
validator/schema.go16 symbols
parser/parser.go15 symbols
ast/selection.go13 symbols

For agents

$ claude mcp add gqlparser \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page