사전 준비사항
React
Relay is a framework for data management with the primary supported binding for React applications, so we assume that you are already familiar with React.
GraphQL
We also assume basic understanding of GraphQL. In order to start using Relay, you will also need:
A GraphQL Schema
A description of your data model with an associated set of resolve methods that know how to fetch any data your application could ever need.
GraphQL is designed to support a wide range of data access patterns. In order to understand the structure of an application's data, Relay requires that you follow certain conventions when defining your schema. These are documented in the GraphQL Server Specification.
graphql-js on npm
General-purpose tools for building a GraphQL schema using JavaScript
-
JavaScript helpers for defining connections between data, and mutations, in a way that smoothly integrates with Relay.
A GraphQL Server
Any server can be taught to load a schema and speak GraphQL. Our examples use Express.