Skip to content

Commit 3ba97e1

Browse files
committed
feat(binding): updated to graphql-binding v1 (deps, examples, readme)
1 parent 707e3ca commit 3ba97e1

File tree

5 files changed

+9
-24
lines changed

5 files changed

+9
-24
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const resolvers = {
3333
hello: (parent, { name }) => `Hello ${name || 'World'}!`,
3434
favoriteRepos: (parent, args, context, info) => {
3535
return Promise.all(
36-
favoriteRepos.map(args => github.query.repository(args, info)),
36+
favoriteRepos.map(args => github.query.repository(args, context, info)),
3737
)
3838
},
3939
},

example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"deploy": "now --public -e GITHUB_TOKEN && now alias && now rm --yes --safe graphql-binding-github"
55
},
66
"dependencies": {
7-
"graphql-binding-github": "0.2.5",
7+
"graphql-binding-github": "0.3.0",
88
"graphql-yoga": "1.1.5"
99
},
1010
"now": {

example/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const resolvers = {
1515
hello: (parent, { name }) => `Hello ${name || 'World'}!`,
1616
favoriteRepos: (parent, args, context, info) => {
1717
return Promise.all(
18-
favoriteRepos.map(args => github.query.repository(args, info)),
18+
favoriteRepos.map(args => github.query.repository(args, context, info)),
1919
)
2020
},
2121
},

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"apollo-link-http": "1.3.2",
1818
"cross-fetch": "1.1.1",
1919
"graphql": "0.12.3",
20-
"graphql-binding": "0.5.0",
20+
"graphql-binding": "1.2.0",
2121
"graphql-tools": "2.18.0"
2222
},
2323
"devDependencies": {

yarn.lock

+5-20
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
# yarn lockfile v1
33

44

5-
6-
version "0.11.7"
7-
resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-0.11.7.tgz#da39a2f7c74e793e32e2bb7b3b68da1691532dd5"
8-
95
106
version "0.11.8"
117
resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-0.11.8.tgz#53ff3604e99db810dd43347f19fcd1c59725a7bb"
@@ -57,14 +53,13 @@ es6-promise@^4.1.1:
5753
version "4.2.2"
5854
resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.2.tgz#f722d7769af88bd33bc13ec6605e1f92966b82d9"
5955

60-
graphql-binding@0.5.0:
61-
version "0.5.0"
62-
resolved "https://registry.yarnpkg.com/graphql-binding/-/graphql-binding-0.5.0.tgz#2ec068197ca003ea19024f9e617e053fc3afaffa"
56+
graphql-binding@1.2.0:
57+
version "1.2.0"
58+
resolved "https://registry.yarnpkg.com/graphql-binding/-/graphql-binding-1.2.0.tgz#0876318735fb469631586d7721a2189eff7a8532"
6359
dependencies:
64-
"@types/graphql" "0.11.7"
6560
graphql "0.12.3"
66-
graphql-tools "2.16.0"
67-
iterall "^1.1.3"
61+
graphql-tools "2.18.0"
62+
iterall "1.1.3"
6863

6964
graphql-subscriptions@^0.5.6:
7065
version "0.5.6"
@@ -73,16 +68,6 @@ graphql-subscriptions@^0.5.6:
7368
es6-promise "^4.1.1"
7469
iterall "^1.1.3"
7570

76-
77-
version "2.16.0"
78-
resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-2.16.0.tgz#689e46ce8b4570e01214cb7fda4a0c9338c0459f"
79-
dependencies:
80-
apollo-link "^1.0.0"
81-
apollo-utilities "^1.0.1"
82-
deprecated-decorator "^0.1.6"
83-
graphql-subscriptions "^0.5.6"
84-
uuid "^3.1.0"
85-
8671
8772
version "2.18.0"
8873
resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-2.18.0.tgz#8e2d6436f9adba1d579c1a1710ae95e7f5e7248b"

0 commit comments

Comments
 (0)