nodkz / relay-northwind-app

A complex React, Relay, GraphQL demo app. Online demo:
https://nodkz.github.io/relay-northwind/
MIT License
103 stars 18 forks source link

feat(build): Add @nodkz's relay store gist #2

Closed cellis closed 7 years ago

cellis commented 7 years ago

In order to prepare for relay 2, and to make it easier to write mutations, let's use Relay.GraphQLMutation to run mutations. In theory this will allow us to not have to use Fat/Tracked queries.

Addresses #1

cellis commented 7 years ago

Right now this seems to break on the heroku test data:

screenshot 2017-01-23 20 14 20

nodkz commented 7 years ago

@cellis this error occurs due fetching data from /graphql uri. I just fixed it providing correct endpoint address.

BTW sometimes in dev with Hot Reload you may receive fragment not found or similar. I did not resolve this problem yet (too complicated, and may be resolved in Relay2). Soo... for now just reload the page.