A library to help construct a graphql-js server supporting react-relay. This is a library to allow the easy creation of Relay-compliant servers using the GraphQL.js reference implementation of a GraphQL server. A basic understanding of GraphQL and of the GraphQL.js implementation is needed to provide context for this library. This library is designed to work with the GraphQL.js reference implementation of a GraphQL server. An overview of the functionality that a Relay-compliant GraphQL server should provide is in the GraphQL Relay Specification on the Relay website. That overview describes a simple set of examples that exist as tests in this repository. A good way to get started with this repository is to walk through that documentation and the corresponding tests in this library together. When building a schema for GraphQL.js, the provided library functions can be used to simplify the creation of Relay patterns.
Features
- Helper functions are provided for both building the GraphQL types for connections and for implementing the resolve method for fields returning those types
- Object Identification
- A helper function is provided for building mutations with single inputs and client mutation IDs.
- Helper functions are provided for both building the GraphQL types for nodes and for implementing global IDs around local IDs.
- This library is designed to work with the GraphQL.js reference implementation of a GraphQL server
- When building a schema for GraphQL.js, the provided library functions can be used to simplify the creation of Relay patterns