2.11.0 • Published 6 years ago
@gr2m/github-graphql-schema v2.11.0
github-graphql-schema
GitHub’s GraphQL Schema with validation. Automatically updated.
Usage
const {validate} = require('@gr2m/github-graphql-schema')
const errors = validate(`
{
viewer {
login
}
}
`)
// errors is array. Contains errors if any
You can also load the current Schema directly as JSON or IDL.
const {schema} = require('@gr2m/github-graphql-schema')
schem.json // JSON version
schem.idl // IDL version
Local setup
git clone https://github.com/gr2m/github-graphql-schema.git
cd github-graphql-schema
npm install
npm test
Update schema files (GH_TOKEN
requires no scope)
GH_TOKEN=... bin/download.js
Create pull request (after schema files changed). This script is run daily on Travis CI. The token requires public_repo
scope.
GH_TOKEN=... TRAVIS_REPO_SLUG=gr2m/github-graphql-schema bin/create-pull-request.js
LICENSE
2.11.0
6 years ago
2.10.0
6 years ago
2.9.0
6 years ago
2.8.0
6 years ago
2.7.0
6 years ago
2.6.0
6 years ago
2.5.0
6 years ago
2.4.1
6 years ago
2.4.0
6 years ago
2.3.0
6 years ago
2.2.0
6 years ago
2.1.0
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.17.0
6 years ago
1.16.1
6 years ago
1.16.0
6 years ago
1.15.0
6 years ago
1.14.0
6 years ago
1.13.0
6 years ago
1.12.0
6 years ago
1.11.1
6 years ago
1.11.0
6 years ago
1.10.0
6 years ago
1.9.1
6 years ago
1.9.0
6 years ago
1.8.0
6 years ago
1.7.0
6 years ago
1.6.0
6 years ago
1.5.0
6 years ago
1.4.0
6 years ago
1.3.0
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.0
6 years ago