You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Generate documentation from for the ["modularized schema"](http://dev.apollodata.com/tools/graphql-tools/generate-schema.html#modularizing) of graphql-tools
42
31
43
32
```bash
44
-
>graphdoc -s ./schema.js -o ./doc/schema
33
+
>graphqldoc -s ./schema.js -o ./doc/schema
45
34
```
46
35
47
-
> [`./schema.graphql`](https://github.com/2fd/graphdoc/blob/master/test/starwars.graphql) must be able to be interpreted with [graphql-js/utilities#buildSchema](http://graphql.org/graphql-js/utilities/#buildschema)
36
+
> `./schema.graphql` must be able to be interpreted with [graphql-js/utilities#buildSchema](http://graphql.org/graphql-js/utilities/#buildschema)
48
37
49
38
50
39
### Generate documentation from json file
51
40
52
41
```bash
53
-
>graphdoc -s ./schema.json -o ./doc/schema
42
+
>graphqldoc -s ./schema.json -o ./doc/schema
54
43
```
55
44
56
-
> `./schema.json` contains the result of [GraphQL introspection query](https://github.com/2fd/graphdoc/blob/gh-pages/introspection.graphql)
45
+
> `./schema.json` contains the result of GraphQL introspection query.
57
46
58
47
### Puts the options in your `package.json`
59
48
@@ -63,7 +52,7 @@
63
52
{
64
53
"name":"project",
65
54
// [...]
66
-
"graphdoc": {
55
+
"graphqldoc": {
67
56
"endpoint":"http://localhost:8080/graphql",
68
57
"output":"./doc/schema",
69
58
}
@@ -73,18 +62,18 @@
73
62
And execute
74
63
75
64
```bash
76
-
>graphdoc
65
+
>graphqldoc
77
66
```
78
67
79
68
### Help
80
69
81
70
```bash
82
71
83
-
>graphdoc -h
72
+
>graphqldoc -h
84
73
85
74
Static page generator for documenting GraphQL Schema v2.4.0
86
75
87
-
Usage: node bin/graphdoc.js [OPTIONS]
76
+
Usage: node bin/graphqldoc.js [OPTIONS]
88
77
89
78
90
79
[OPTIONS]:
@@ -93,25 +82,25 @@ And execute
93
82
-x, --header HTTP header for request (use with --endpoint). ["Authorization: Token cb8795e7"].
94
83
-q, --query HTTP querystring for request (use with --endpoint) ["token=cb8795e7"].
0 commit comments