18 Commits
Author SHA1 Message Date
Chris Bolin 1696916a3b Make Treasure Hunt tutorial color blind friendly :)
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
2016-01-20 10:35:33 -08:00
Marc-André Giroux 8961271e79 add commitUpdate method, deprecate update
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
2016-01-07 23:45:30 -08:00
Samer Buna 78034401b4 Add link to the mentioned examples directory
Summary: Closes https://github.com/facebook/relay/pull/483

Reviewed By: josephsavona

Differential Revision: D2553683

fb-gh-sync-id: 7e49b11a99dc4aa7dea2947742d3c61716eaaf6f
2015-10-19 16:35:29 -07:00
Yihang Ho 402a246fba Improve tutorial
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
2015-10-12 09:50:29 -07:00
Joe Savona 5a99f2cc16 new docs: Thinking in GraphQL & Relay
Summary: Adds two new articles to the "Quick Start" section:
- Thinking in GraphQL
- Thinking in Relay

Reviewed By: @yungsters

Differential Revision: D2497582
2015-10-05 10:15:24 -07:00
Andreas Savvides e7b9b3f616 Docs improvements
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
2015-09-25 14:30:01 -07:00
Greg Hurrell f4611e2905 Use HTTPS URL for starter kit
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.
2015-09-02 09:00:52 -07:00
Gerald Monaco 077bb16f64 Update docs and examples with new route syntax 2015-08-29 12:32:19 -07:00
Joseph Savona 2fb03097d8 Merge pull request #174 from philcockfield/patch-1
Reference new repo location on GitHub for the starter kit
2015-08-27 15:13:42 -07:00
Austin Lyons 665fe51f30 added missing word 2015-08-27 12:20:24 -05:00
Phil Cockfield 410e391372 Clone from SSH version of the github address.
Consistent with original.
2015-08-27 15:24:09 +12:00
Phil Cockfield b824b7e2fb New git location for the starter kit
The GIT repo referenced here no longer exists.  Is this the new location for that repo?
2015-08-27 08:52:10 +12:00
Joe Lencioni 8812811c70 Tutorial: export Game and HidingSpot classes
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.
2015-08-22 16:37:34 -07:00
Timothy Yung 6b582b2c42 Merge pull request #82 from h1nr1ch/patch-1
Update QuickStart-Tutorial.md
2015-08-18 10:40:43 -07:00
h1nr1ch d576ddfe28 Update QuickStart-Tutorial.md 2015-08-16 00:00:52 +02:00
dmitri 3681528821 Remove reference to text in relay-treasurehunt mutate and get payload 2015-08-15 11:57:56 -04:00
Berk Birand 4eddae5678 Language 2015-08-15 01:42:29 -04:00
Timothy Yung 2a86be3e71 ༼ つ ◕_◕ ༽つ Give RELAY 2015-08-11 12:22:53 -07:00