Skip to content

Commit

Permalink
Merge pull request #5 from kazuyaseki/hotfix/2
Browse files Browse the repository at this point in the history
#2 クエリの間違いについての表記を追記
  • Loading branch information
kazuyaseki committed Oct 20, 2018
2 parents c3906b7 + 874bb71 commit b08c472
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions README.md
Expand Up @@ -17,3 +17,56 @@ https://github.com/kazuyaseki/matering-apollo-client

正しくは `mastering` なのですがレポジトリ名自体が間違っているため、`matering-apollo-client` のレポジトリ名で clone いただけますと幸いです。
(恥ずかしいですが、本に書かれてある通りの内容が動く方が良いと判断したため、そのままとさせてください。)

### ページ 24, リスト 3.4 のクエリが誤っている

```js
const query = gql`
query search($searchText: String!) {
{
search(query: $searchText, type: REPOSITORY, first: 10) {
edges {
node {
... on Repository {
id
name
description
url
viewerHasStarred
stargazers {
totalCount
}
}
}
}
}
}
}
`;
```

と書かれてしまっていますが、正しくは次のクエリです。
上記3行目の `{}` のペアを取り除いています。

```js
const query = gql`
query search($searchText: String!) {
search(query: $searchText, type: REPOSITORY, first: 10) {
edges {
node {
... on Repository {
id
name
description
url
viewerHasStarred
stargazers {
totalCount
}
}
}
}
}
}
`;
```

0 comments on commit b08c472

Please sign in to comment.