Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gqlc/compiler
GraphQL Compiler Internals e.g. Type Validation, Import Reduction, etc.
https://github.com/gqlc/compiler
golang graphql graphql-tools
Last synced: 7 days ago
JSON representation
GraphQL Compiler Internals e.g. Type Validation, Import Reduction, etc.
- Host: GitHub
- URL: https://github.com/gqlc/compiler
- Owner: gqlc
- License: mit
- Created: 2018-12-24T04:47:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-07T04:31:57.000Z (over 4 years ago)
- Last Synced: 2024-07-15T08:02:08.833Z (4 months ago)
- Topics: golang, graphql, graphql-tools
- Language: Go
- Homepage:
- Size: 185 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![GoDoc](https://godoc.org/github.com/gqlc/compiler?status.svg)](https://godoc.org/github.com/gqlc/compiler)
[![Go Report Card](https://goreportcard.com/badge/github.com/gqlc/compiler)](https://goreportcard.com/report/github.com/gqlc/compiler)
[![Build Status](https://travis-ci.org/gqlc/compiler.svg?branch=master)](https://travis-ci.org/gqlc/compiler)
[![codecov](https://codecov.io/gh/gqlc/compiler/branch/master/graph/badge.svg)](https://codecov.io/gh/gqlc/compiler)# GraphQL Compiler Internals
Package `compiler` provides types and interfaces for interacting with or implementing
a compiler for the GraphQL IDL.## Features
- Import Tree Reduction
- Type Validation
- Type Merging### Import Tree Reduction
GraphQL documents can import one another with the following directive:
```graphql
directive @import(paths: [String]!) on DOCUMENT
```### Type Validation
Type Validation/Checking is provided by implementing the `TypeChecker` interface. The
`Validate` function is a `TypeChecker` that enforces type validation, per the GraphQL spec.### Type Merging
Type merging handles merging type extensions with their original type definition.