Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
/ gqlparser Public archive
forked from vektah/gqlparser

A port of the parser from graphql-js into golang

License

Notifications You must be signed in to change notification settings

gqlgo/gqlparser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked gqlparser written by gqlgo test

gqlparser is a graphql parser package for Go. original: vektah/gqlparser

You can see compare with the original.

Install

$ go get -u github.com/gqlgo/gqlparser/v2@master

About gqlparser

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: June 2018 (Schema definition language, block strings as descriptions, error paths & extension)

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

Guiding principles:

  • maintainability: It should be easy to stay up to date with the spec
  • well tested: It shouldnt 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 doesnt impact on the above it should be fast. Avoid unnecessary allocs in hot paths.
  • close to reference: Where it doesnt impact on the above, it should stay close to the graphql/graphql-js reference implementation.

About

A port of the parser from graphql-js into golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 97.7%
  • JavaScript 2.0%
  • Shell 0.3%