Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd876fb5

Browse files
mattleffstubailo
authored andcommitted
Correct function name (graphql#612)
1 parent342f74b commitd876fb5

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
constpersonLoader=newDataLoader(
398-
urls=>Promise.all(urls.map(getPersonByURL))
398+
urls=>Promise.all(urls.map(fetchPersonByURL))
399399
);
400400
```
401401

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp