Summary:
Trivial change: making the "Treasure" box color blue instead of green. I honestly couldn't tell the difference between the red and green at first 👅
Closes https://github.com/facebook/relay/pull/746
Reviewed By: kassens
Differential Revision: D2845005
fb-gh-sync-id: 9f8b318e284c6feeb5cd2737e1af6a91f25b554e
Summary:
Follow up to #599, #550
Deprecate `RelayStore.update`, rename to `RelayStore.commitUpdate`
`commitUpdate` now returns the `RelayMutationTransaction` just like `applyUpdate`.
Changed to `commitUpdate` in the docs.
I used `warning` to deprecate and also call the correct method, let me know if this is the way we should deprecate the function.
Closes https://github.com/facebook/relay/pull/607
Reviewed By: yungsters
Differential Revision: D2668030
fb-gh-sync-id: 2a02b38009cf125089ddc341ce82173aee9fa294
Summary: 1. Some of the relative paths mentioned in the tutorial are not accurate. This fixes those affected paths.
2. Explicitly import `react-relay` in the mutation section.
3. Add the `key` attribute to each cell created by `renderGameBoard`. The key attribute already exist in the example directory.
Closes https://github.com/facebook/relay/pull/451
Reviewed By: @josephsavona
Differential Revision: D2531646
fb-gh-sync-id: a3e661e63a495982d4d43b2887a7010d207ed599
Summary: Adds two new articles to the "Quick Start" section:
- Thinking in GraphQL
- Thinking in Relay
Reviewed By: @yungsters
Differential Revision: D2497582
Summary: I just went through the docs and tutorials as I was introducing GraphQL & Relay to a project and found a few places that the docs could be improved on - let me know what you think, feedback is obviously welcome :)
In summary:
- Linked to Conference pages where videos came through & added dates so that people have a little more context on a video's recency
- Added reference to [Relay and Routing medium post](https://medium.com/@cpojer/relay-and-routing-36b5439bad9)
- Changed a couple of sentences at the end of some guides referencing what's coming up next; for example, at the end of the Tutorial section it says you'll be taken to the Guides, but actually you get to the Videos section first
- Added links to external dependencies / plugins / functions that are mentioned and I had to look for rather than click on and be taken there
Closes https://github.com/facebook/relay/pull/389
Reviewed By: @yungsters
Differential Revision: D2481599
This is lower friction than the SSH URL because it works even without a
GitHub account and a configured SSH key.
Note there is one other SSH URL in the repo that I did not change in
`website/README.md`. That one specifically deals with publishing the
website, for which you need push access, and SSH is going to be more
convenient for that.
In the following step of this tutorial, there is some code that imports
these classes from this file.
```
import {
Game,
HidingSpot,
...
} from './database';
```
However, since they are not exported, they will be undefined when
imported. This comes into play in the `nodeDefinitions` object type
resolver when we try to run `obj instanceof Game`. Since `Game` is
undefined, this will result in an error such as:
> Expecting a function in instanceof check, but got undefined
For the scope of this tutorial, this doesn't seem to make much
difference. However, for folks wanting to move beyond this tutorial into
something a little more complicated, such as pagination, this oddity
could be a stumbling block to learning.