Skip to content

Commit 3e24c69

Browse files
author
Sashko Stubailo
authored
Merge pull request #557 from tbroadley/fix-typos
docs: fix typos
2 parents 7089bbf + 42d180d commit 3e24c69

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Update to add support for `[email protected]`, and drop versions before `0.11` from t
181181

182182
* Removed testing on Node 5 ([@DxCx](https://github.com/DxCx) in [#129](https://github.com/apollostack/graphql-tools/pull/129))
183183

184-
* Changed GraphQL typings requirment from peer to standard ([@DxCx](https://github.com/DxCx) in [#129](https://github.com/apollostack/graphql-tools/pull/129))
184+
* Changed GraphQL typings requirement from peer to standard ([@DxCx](https://github.com/DxCx) in [#129](https://github.com/apollostack/graphql-tools/pull/129))
185185

186186
* Change the missing resolve function validator to show a warning instead of an error ([@nicolaslopezj](https://github.com/nicolaslopezj) in [#134](https://github.com/apollostack/graphql-tools/pull/134))
187187

designs/connectors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ In this example, an author has multiple posts, and each post has one author.
3737

3838
Here's an illustration for how connectors and models would look like for this example if Authors and Posts were stored in MySQL, but view counts in MongoDB:
3939

40-
![Connectors are database-specfic, models are application-specific](connector-model-diagram.png)
40+
![Connectors are database-specific, models are application-specific](connector-model-diagram.png)
4141

4242

4343
The Posts model connects to both SQL and MongoDB. Title, text and authorId come from SQL, the view count comes from MongoDB.
@@ -60,7 +60,7 @@ Both batching and caching are more important in GraphQL than in traditional endp
6060

6161
Models are the glue between connectors - which are backend-specific - and GraphQL types - which are app-specific. They are very similar to models in ORMs, such as Rails' Active Record.
6262

63-
Let's say for example that you have two types, Author and Post, which are both stored in MySQL. Rather than calling the MySQL connector directly from your resolve funcitons, you should create models for Author and Post, which use the MongoDB connector. This additional level of abstraction helps separate the data fetching logic from the GraphQL schema, which makes reusing and refactoring it easier.
63+
Let's say for example that you have two types, Author and Post, which are both stored in MySQL. Rather than calling the MySQL connector directly from your resolve functions, you should create models for Author and Post, which use the MongoDB connector. This additional level of abstraction helps separate the data fetching logic from the GraphQL schema, which makes reusing and refactoring it easier.
6464

6565
In the example schema above, the Authors model would have the following methods:
6666
```

docs/source/resolvers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Modules and extensions built by the community.
178178

179179
Composition library for GraphQL, with helpers to combine multiple resolvers into one, specify dependencies between fields, and more.
180180

181-
When developing a GraphQL server, it is common to perform some authorization logic on your resolvers, usually based on the context of a request. With `graphql-resolvers` you can easily accomplish that and still make the code decoupled - thus testable - by combining multiple sigle-logic resolvers into one.
181+
When developing a GraphQL server, it is common to perform some authorization logic on your resolvers, usually based on the context of a request. With `graphql-resolvers` you can easily accomplish that and still make the code decoupled - thus testable - by combining multiple single-logic resolvers into one.
182182

183183
The following is an example of a simple logged-in authorization logic:
184184

docs/source/schema-stitching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ You won't be able to query `User.chirps` or `Chirp.author` yet however, because
112112

113113
So what should these resolvers look like?
114114

115-
When we resolve `User.chirps` or `Chirp.author`, we want to delegate to the revelant root fields. To get from a user to its chirps for example, we'll want to use the `id` of the user to call `chirpsByAuthorId`. And to get from a chirp to its author, we can use the chirp's `authorId` field to call into `userById`.
115+
When we resolve `User.chirps` or `Chirp.author`, we want to delegate to the relevant root fields. To get from a user to its chirps for example, we'll want to use the `id` of the user to call `chirpsByAuthorId`. And to get from a chirp to its author, we can use the chirp's `authorId` field to call into `userById`.
116116

117117
Resolvers specified as part of `mergeSchema` have access to a `delegate` function that allows you to delegate to root fields.
118118

@@ -220,7 +220,7 @@ resolvers: mergeInfo => ({
220220

221221
#### mergeInfo and delegate
222222

223-
`mergeInfo` currenty is an object with one property - `delegate`. It looks like this:
223+
`mergeInfo` currently is an object with one property - `delegate`. It looks like this:
224224

225225
```js
226226
type MergeInfo = {

0 commit comments

Comments
 (0)