GraphQL Relay Specification
GraphQL Relay Specification
Getting Started
The three core assumptions that Relay makes about a GraphQL server are that it provides:
- A mechanism for refetching an object.
- A description of how to page through connections.
- Structure around mutations to make them predictable.
This example demonstrates all three of these assumptions.
This example is not comprehensive, but it is designed to quickly introduce these core assumptions, to provide some context before diving into the more detailed specification of the library.
The premise of the example is that we want to use GraphQL to query for information about ships and factions in the original Star Wars trilogy.
It is assumed that the reader is already familiar with GraphQL; if not, the README for GraphQL.js is a good place to