graphql-utilities
Inspired by graph.ql
, graphql-tools
, and graphql-helpers
.
Why?
There are various libraries out there providing utilities for GraphQL and even the reference implementation itself is adding new utilities. So why do we need another one?
None of those libraries let you build GraphQL types using the schema language. This prevents gradual adoption of the tools and makes code separation and isolation a nightmare.
With graphql-utilities
it's simple. build
makes it extremely simple to build a GraphQL type.
; /* is equivalent to */ name: 'Query' ok: type: GraphQLBoolean
Installation
npm install --save graphql-utilities
Getting Started
; // you can build a typeconst Record = ; // or you can build a schemaconst Schema = ;
TODO
- Add detailed API docs.
-
Makebuild
configuration interchangeable with types. -
Allowbuild
to accept a flag to skip inferred schema.
License
MIT