Skip to content

Commit d876fb5

Browse files
mattleffstubailo
authored andcommitted
Correct function name (graphql#612)
1 parent 342f74b commit d876fb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/blog/20160502-rest-api-graphql-wrapper.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const PersonType = new GraphQLObjectType({
141141
/* ... */
142142
friends: {
143143
type: new GraphQLList(PersonType),
144-
resolve: person => person.friends.map(getPersonByURL),
144+
resolve: person => person.friends.map(fetchPersonByURL),
145145
},
146146
}),
147147
});
@@ -395,7 +395,7 @@ To create a `DataLoader` you supply a method that can resolve a list of objects
395395

396396
```js
397397
const personLoader = new DataLoader(
398-
urls => Promise.all(urls.map(getPersonByURL))
398+
urls => Promise.all(urls.map(fetchPersonByURL))
399399
);
400400
```
401401

0 commit comments

Comments
 (0)