Skip to content

Commit b4f0127

Browse files
committed
readme
1 parent a217521 commit b4f0127

File tree

3 files changed

+94
-55
lines changed

3 files changed

+94
-55
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ const transformedSchema = transformSchema(schema, {
2929
Starship: true,
3030
allStarships: true,
3131
})
32+
33+
const transformedSchema = transformSchema(schema, {
34+
Query: {
35+
'*': false,
36+
Starship: true,
37+
allStarships: true,
38+
},
39+
Mutation: {
40+
41+
},
42+
Starship: {
43+
'*': false,
44+
id: true,
45+
},
46+
})
3247
```
3348

3449
### API

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
},
3636
"devDependencies": {
3737
"@types/graphql": "^0.11.0",
38-
"@types/lodash": "^4.14.74",
38+
"@types/lodash": "^4.14.80",
3939
"@types/minimatch": "^3.0.1",
4040
"ava": "^0.23.0",
41-
"graphql-tools": "^2.0.0",
41+
"graphql-tools": "^2.6.1",
4242
"typescript": "^2.5.2"
4343
}
4444
}

yarn.lock

Lines changed: 77 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,12 @@
4545
arrify "^1.0.1"
4646

4747
"@types/graphql@^0.11.0":
48-
version "0.11.0"
49-
resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-0.11.0.tgz#19a3f9d52f168e6a9ad5ce4b762a5062ea55d6fd"
50-
51-
"@types/graphql@^0.9.0":
52-
version "0.9.4"
53-
resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-0.9.4.tgz#cdeb6bcbef9b6c584374b81aa7f48ecf3da404fa"
48+
version "0.11.5"
49+
resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-0.11.5.tgz#e70f051e80b299be5b12f7e60d962f30c9596072"
5450

55-
"@types/lodash@^4.14.74":
56-
version "4.14.74"
57-
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.74.tgz#ac3bd8db988e7f7038e5d22bd76a7ba13f876168"
51+
"@types/lodash@^4.14.80":
52+
version "4.14.80"
53+
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.80.tgz#a6b8b7900e6a7dcbc2e90d9b6dfbe3f6a7f69951"
5854

5955
"@types/minimatch@^3.0.1":
6056
version "3.0.1"
@@ -110,6 +106,10 @@ anymatch@^1.3.0:
110106
micromatch "^2.1.5"
111107
normalize-path "^2.0.0"
112108

109+
apollo-utilities@^0.1.1-0:
110+
version "0.1.1-1"
111+
resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-0.1.1-1.tgz#a637c2a5b49e06f20dd9adf7c55ec1ff69a97592"
112+
113113
aproba@^1.0.3:
114114
version "1.1.2"
115115
resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.1.2.tgz#45c6629094de4e96f693ef7eab74ae079c240fc1"
@@ -201,9 +201,9 @@ ava-init@^0.2.0:
201201
read-pkg-up "^2.0.0"
202202
write-pkg "^3.1.0"
203203

204-
ava@^0.22.0:
205-
version "0.22.0"
206-
resolved "https://registry.yarnpkg.com/ava/-/ava-0.22.0.tgz#4c28a1fdef7e749ba0c8131ac18a7ca489eef049"
204+
ava@^0.23.0:
205+
version "0.23.0"
206+
resolved "https://registry.yarnpkg.com/ava/-/ava-0.23.0.tgz#beed11730adef74a857761b62b8882bf16d5a038"
207207
dependencies:
208208
"@ava/babel-preset-stage-4" "^1.1.0"
209209
"@ava/babel-preset-transform-test-files" "^3.0.0"
@@ -234,7 +234,7 @@ ava@^0.22.0:
234234
convert-source-map "^1.2.0"
235235
core-assert "^0.2.0"
236236
currently-unhandled "^0.4.1"
237-
debug "^2.2.0"
237+
debug "^3.0.1"
238238
dot-prop "^4.1.0"
239239
empower-core "^0.6.1"
240240
equal-length "^1.0.0"
@@ -271,20 +271,20 @@ ava@^0.22.0:
271271
package-hash "^2.0.0"
272272
pkg-conf "^2.0.0"
273273
plur "^2.0.0"
274-
pretty-ms "^2.0.0"
274+
pretty-ms "^3.0.0"
275275
require-precompiled "^0.1.0"
276276
resolve-cwd "^2.0.0"
277277
safe-buffer "^5.1.1"
278278
slash "^1.0.0"
279279
source-map-support "^0.4.0"
280-
stack-utils "^1.0.0"
280+
stack-utils "^1.0.1"
281281
strip-ansi "^4.0.0"
282282
strip-bom-buf "^1.0.0"
283283
supports-color "^4.0.0"
284284
time-require "^0.1.2"
285285
trim-off-newlines "^1.0.1"
286286
unique-temp-dir "^1.0.0"
287-
update-notifier "^2.1.0"
287+
update-notifier "^2.3.0"
288288

289289
aws-sign2@~0.6.0:
290290
version "0.6.0"
@@ -614,9 +614,9 @@ boom@2.x.x:
614614
dependencies:
615615
hoek "2.x.x"
616616

617-
boxen@^1.0.0:
618-
version "1.2.1"
619-
resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.2.1.tgz#0f11e7fe344edb9397977fc13ede7f64d956481d"
617+
boxen@^1.2.1:
618+
version "1.2.2"
619+
resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.2.2.tgz#3f1d4032c30ffea9d4b02c322eaf2ea741dcbce5"
620620
dependencies:
621621
ansi-align "^2.0.0"
622622
camelcase "^4.0.0"
@@ -701,7 +701,7 @@ chalk@^0.4.0:
701701
has-color "~0.1.0"
702702
strip-ansi "~0.1.0"
703703

704-
chalk@^1.0.0, chalk@^1.1.3:
704+
chalk@^1.1.3:
705705
version "1.1.3"
706706
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
707707
dependencies:
@@ -921,6 +921,12 @@ debug@^2.2.0, debug@^2.6.8:
921921
dependencies:
922922
ms "2.0.0"
923923

924+
debug@^3.0.1:
925+
version "3.1.0"
926+
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
927+
dependencies:
928+
ms "2.0.0"
929+
924930
decamelize@^1.1.2:
925931
version "1.2.0"
926932
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
@@ -1219,6 +1225,12 @@ glob@^7.0.3, glob@^7.0.5:
12191225
once "^1.3.0"
12201226
path-is-absolute "^1.0.0"
12211227

1228+
global-dirs@^0.1.0:
1229+
version "0.1.0"
1230+
resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.0.tgz#10d34039e0df04272e262cf24224f7209434df4f"
1231+
dependencies:
1232+
ini "^1.3.4"
1233+
12221234
globals@^9.18.0:
12231235
version "9.18.0"
12241236
resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a"
@@ -1253,20 +1265,19 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2:
12531265
version "4.1.11"
12541266
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
12551267

1256-
graphql-tools@^1.2.2:
1257-
version "1.2.2"
1258-
resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-1.2.2.tgz#ff791e91b78e05eec18a32716a7732bc7bf5cb4d"
1268+
graphql-tools@^2.6.1:
1269+
version "2.6.1"
1270+
resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-2.6.1.tgz#9f6d1600951a05b18b83c52986c42eee4fd3cb1b"
12591271
dependencies:
1272+
apollo-utilities "^0.1.1-0"
12601273
deprecated-decorator "^0.1.6"
1261-
uuid "^3.0.1"
1262-
optionalDependencies:
1263-
"@types/graphql" "^0.9.0"
1274+
uuid "^3.1.0"
12641275

12651276
graphql@^0.11.2:
1266-
version "0.11.2"
1267-
resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.11.2.tgz#13edb9f982f3571dd68ec4e9f3d6aca7e1ba57ef"
1277+
version "0.11.7"
1278+
resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.11.7.tgz#e5abaa9cb7b7cccb84e9f0836bf4370d268750c6"
12681279
dependencies:
1269-
iterall "^1.1.0"
1280+
iterall "1.1.3"
12701281

12711282
har-schema@^1.0.5:
12721283
version "1.0.5"
@@ -1392,7 +1403,7 @@ inherits@2, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.3:
13921403
version "2.0.3"
13931404
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
13941405

1395-
ini@~1.3.0:
1406+
ini@^1.3.4, ini@~1.3.0:
13961407
version "1.3.4"
13971408
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e"
13981409

@@ -1454,7 +1465,7 @@ is-extglob@^1.0.0:
14541465
version "1.0.0"
14551466
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0"
14561467

1457-
is-finite@^1.0.0, is-finite@^1.0.1:
1468+
is-finite@^1.0.0:
14581469
version "1.0.2"
14591470
resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa"
14601471
dependencies:
@@ -1480,6 +1491,13 @@ is-glob@^2.0.0, is-glob@^2.0.1:
14801491
dependencies:
14811492
is-extglob "^1.0.0"
14821493

1494+
is-installed-globally@^0.1.0:
1495+
version "0.1.0"
1496+
resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80"
1497+
dependencies:
1498+
global-dirs "^0.1.0"
1499+
is-path-inside "^1.0.0"
1500+
14831501
is-npm@^1.0.0:
14841502
version "1.0.0"
14851503
resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4"
@@ -1506,6 +1524,12 @@ is-observable@^0.2.0:
15061524
dependencies:
15071525
symbol-observable "^0.2.2"
15081526

1527+
is-path-inside@^1.0.0:
1528+
version "1.0.0"
1529+
resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.0.tgz#fc06e5a1683fbda13de667aff717bbc10a48f37f"
1530+
dependencies:
1531+
path-is-inside "^1.0.1"
1532+
15091533
is-plain-obj@^1.0.0:
15101534
version "1.1.0"
15111535
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e"
@@ -1564,9 +1588,9 @@ isstream@~0.1.2:
15641588
version "0.1.2"
15651589
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
15661590

1567-
iterall@^1.1.0:
1568-
version "1.1.1"
1569-
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.1.1.tgz#f7f0af11e9a04ec6426260f5019d9fcca4d50214"
1591+
iterall@1.1.3:
1592+
version "1.1.3"
1593+
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.1.3.tgz#1cbbff96204056dde6656e2ed2e2226d0e6d72c9"
15701594

15711595
js-string-escape@^1.0.1:
15721596
version "1.0.1"
@@ -2035,6 +2059,10 @@ path-is-absolute@^1.0.0, path-is-absolute@^1.0.1:
20352059
version "1.0.1"
20362060
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
20372061

2062+
path-is-inside@^1.0.1:
2063+
version "1.0.2"
2064+
resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53"
2065+
20382066
path-key@^2.0.0:
20392067
version "2.0.1"
20402068
resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40"
@@ -2094,11 +2122,7 @@ pkg-dir@^2.0.0:
20942122
dependencies:
20952123
find-up "^2.1.0"
20962124

2097-
plur@^1.0.0:
2098-
version "1.0.0"
2099-
resolved "https://registry.yarnpkg.com/plur/-/plur-1.0.0.tgz#db85c6814f5e5e5a3b49efc28d604fec62975156"
2100-
2101-
plur@^2.0.0:
2125+
plur@^2.0.0, plur@^2.1.2:
21022126
version "2.1.2"
21032127
resolved "https://registry.yarnpkg.com/plur/-/plur-2.1.2.tgz#7482452c1a0f508e3e344eaec312c91c29dc655a"
21042128
dependencies:
@@ -2118,13 +2142,12 @@ pretty-ms@^0.2.1:
21182142
dependencies:
21192143
parse-ms "^0.1.0"
21202144

2121-
pretty-ms@^2.0.0:
2122-
version "2.1.0"
2123-
resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-2.1.0.tgz#4257c256df3fb0b451d6affaab021884126981dc"
2145+
pretty-ms@^3.0.0:
2146+
version "3.0.1"
2147+
resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-3.0.1.tgz#7c18b73c228a9b8f6edc2835a12cb8f7ed85f9f4"
21242148
dependencies:
2125-
is-finite "^1.0.1"
21262149
parse-ms "^1.0.0"
2127-
plur "^1.0.0"
2150+
plur "^2.1.2"
21282151

21292152
private@^0.1.7:
21302153
version "0.1.7"
@@ -2453,7 +2476,7 @@ sshpk@^1.7.0:
24532476
jsbn "~0.1.0"
24542477
tweetnacl "~0.14.0"
24552478

2456-
stack-utils@^1.0.0:
2479+
stack-utils@^1.0.1:
24572480
version "1.0.1"
24582481
resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620"
24592482

@@ -2634,8 +2657,8 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0:
26342657
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
26352658

26362659
typescript@^2.5.2:
2637-
version "2.5.2"
2638-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.2.tgz#038a95f7d9bbb420b1bf35ba31d4c5c1dd3ffe34"
2660+
version "2.5.3"
2661+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.3.tgz#df3dcdc38f3beb800d4bc322646b04a3f6ca7f0d"
26392662

26402663
uid-number@^0.0.6:
26412664
version "0.0.6"
@@ -2663,14 +2686,15 @@ unzip-response@^2.0.1:
26632686
version "2.0.1"
26642687
resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97"
26652688

2666-
update-notifier@^2.1.0:
2667-
version "2.2.0"
2668-
resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.2.0.tgz#1b5837cf90c0736d88627732b661c138f86de72f"
2689+
update-notifier@^2.3.0:
2690+
version "2.3.0"
2691+
resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.3.0.tgz#4e8827a6bb915140ab093559d7014e3ebb837451"
26692692
dependencies:
2670-
boxen "^1.0.0"
2671-
chalk "^1.0.0"
2693+
boxen "^1.2.1"
2694+
chalk "^2.0.1"
26722695
configstore "^3.0.0"
26732696
import-lazy "^2.1.0"
2697+
is-installed-globally "^0.1.0"
26742698
is-npm "^1.0.0"
26752699
latest-version "^3.0.0"
26762700
semver-diff "^2.0.0"
@@ -2686,7 +2710,7 @@ util-deprecate@~1.0.1:
26862710
version "1.0.2"
26872711
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
26882712

2689-
uuid@^3.0.0, uuid@^3.0.1:
2713+
uuid@^3.0.0, uuid@^3.1.0:
26902714
version "3.1.0"
26912715
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.1.0.tgz#3dd3d3e790abc24d7b0d3a034ffababe28ebbc04"
26922716

0 commit comments

Comments
 (0)