Fix small errors in RelayCompiler docs
Summary:
You need install watchman to get the `relay-compiler` example working and the example query contained the wrong fragment name, causing errors.
Closes
@@ -29,7 +29,13 @@ The Relay Compiler is responsible for generating code as part of a build step wh
## Setting up Relay Compiler
-First, install the compiler (typically as a `devDependency`):
+First, you need [watchman][https://facebook.github.io/watchman] installed:
+
+```sh
+brew install watchman
+```
+
+Next, install the compiler (typically as a `devDependency`):
```sh
yarn add --dev relay-compiler@dev
@@ -81,7 +87,7 @@ type Word {
type WordDefinition {
text: String
- image: Url
+ image: String
}
```
@@ -121,7 +127,7 @@ For example, given the two files:
const DictionaryQuery = graphql`
query DictionaryQuery {
dictionary {
- ...Dictionary_word
+ ...DictionaryComponent_word
}
}
`
