File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -20,20 +20,23 @@ Node client for generating crude GraphQL specs from Swagger OpenAPI.
2020
2121### CLI
2222
23- ```
23+ ``` bash
2424npx @manifoldco/graphql-gen schema.yaml --output schema.graphql
25+
26+ # 🚀 schema.yaml -> schema.graphql [2ms]
2527```
2628
27- This will save a ` schema.graphql ` file in the current folder.
29+ This will save a ` schema.graphql ` file in the current folder. The CLI can
30+ accept YAML or JSON for the input file.
2831
2932### Node
3033
31- ```
34+ ``` bash
3235npm i --save-dev @manifoldco/graphql-gen
3336```
3437
3538``` js
36- const graphqlGen = require (' @manifoldco/swagger-to- graphql' );
39+ const graphqlGen = require (' @manifoldco/graphql-gen ' );
3740
3841graphqlGen (spec, [options]);
3942```
Original file line number Diff line number Diff line change 11{
22 "name" : " @manifoldco/graphql-gen" ,
3- "version" : " 1.1.0-alpha.4 " ,
3+ "version" : " 1.1.0" ,
44 "main" : " dist/index.js" ,
55 "bin" : {
66 "graphql-gen" : " ./bin/cli.js"
99 " bin" ,
1010 " dist"
1111 ],
12- "homepage" : " https://github.com/manifoldco/swagger-to- graphql#readme" ,
12+ "homepage" : " https://github.com/manifoldco/graphql-gen #readme" ,
1313 "repository" : {
1414 "type" : " git" ,
15- "url" : " git+https://github.com/manifoldco/swagger-to- graphql.git"
15+ "url" : " git+https://github.com/manifoldco/graphql-gen .git"
1616 },
1717 "keywords" : [
1818 " swagger" ,
2424 "author" : " dangodev" ,
2525 "license" : " ISC" ,
2626 "bugs" : {
27- "url" : " https://github.com/manifoldco/swagger-to- graphql/issues"
27+ "url" : " https://github.com/manifoldco/graphql-gen /issues"
2828 },
2929 "scripts" : {
3030 "build" : " node scripts/build" ,
You can’t perform that action at this time.
0 commit comments