Skip to content

gqlc/compiler

Repository files navigation

GoDoc Go Report Card Build Status codecov

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:

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.

About

GraphQL Compiler Internals e.g. Type Validation, Import Reduction, etc.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages