Name: react-relay
Owner: How to GraphQL
Description: null
Created: 2017-06-29 12:27:35.0
Updated: 2018-05-14 08:02:06.0
Pushed: 2018-04-03 20:44:21.0
Homepage: null
Size: 1343
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is the sample project that belongs to the React & Relay Tutorial on How to GraphQL.
clone https://github.com/howtographql/react-relay/
eact-relay
graphcool
If you haven't already, install the Graphcool CLI:
stall Graphcool CLI
install -g graphcool
Once it's installed, you can deploy the Graphcool service based on the existing definition inside the server
directory:
erver
hcool deploy
When prompted, choose any of the Shared Clusters deplyoment options.
Copy the service ID (which you find in the generated .graphcoolrc
file inside the server
directory or by running graphcool info
) into ./src/Environment.js
replacing the current placeholder __SERVICE_ID__
.
Notice that you need to this twice, once inside fetchQuery
and once inside setupSubscription
.
install
y-compiler --src ./src --schema ./schema.graphql
start # open http://localhost:3000 in your browser