generates something mostly plausiblegit add .

This commit is contained in:
Ben Kraft
2019-12-23 23:22:19 -05:00
parent 7a20e2ae74
commit e8b5ccbcda
8 changed files with 23487 additions and 17 deletions
+7
View File
@@ -0,0 +1,7 @@
Generate the schemas by getting a token from [GitHub](https://github.com/settings/tokens/new) (no scopes needed), then:
```
npm install -g graphql-introspection-json-to-sdl
curl -H "Authorization: bearer <your token>" https://api.github.com/graphql >example/schema.json
graphql-introspection-json-to-sdl example/schema.json >example/schema.graphql
```
TODO: something better