All Projects → octokit → Graphql Schema

octokit / Graphql Schema

Licence: mit
GitHub’s GraphQL Schema with validation. Automatically updated.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Graphql Schema

Jspdf Autotable
jsPDF plugin for generating PDF tables with javascript
Stars: ✭ 1,649 (+1359.29%)
Mutual labels:  hacktoberfest
Sudo
Development repository for sudo cookbook
Stars: ✭ 113 (+0%)
Mutual labels:  hacktoberfest
U Root
A fully Go userland with Linux bootloaders! u-root can create a one-binary root file system (initramfs) containing a busybox-like set of tools written in Go.
Stars: ✭ 1,816 (+1507.08%)
Mutual labels:  hacktoberfest
Pac
科学上网,智能分流,使用 GFWList 和 IP 地址双重判断。现在已有 113 颗 ★
Stars: ✭ 113 (+0%)
Mutual labels:  hacktoberfest
Tinseltown.js
A lightweight CSS/JS library for faux hacker-movie-style page loading effects
Stars: ✭ 113 (+0%)
Mutual labels:  hacktoberfest
Invoke Zerologon
Invoke-ZeroLogon allows attackers to impersonate any computer, including the domain controller itself, and execute remote procedure calls on their behalf.
Stars: ✭ 100 (-11.5%)
Mutual labels:  hacktoberfest
Xgo
Go CGO cross compiler
Stars: ✭ 112 (-0.88%)
Mutual labels:  hacktoberfest
Dolly
🤖🐑 It's a sheep, it's a dolly, it's a following robot. Dolly was born to be cloned.
Stars: ✭ 113 (+0%)
Mutual labels:  hacktoberfest
Geospatial
Odoo and GIS
Stars: ✭ 113 (+0%)
Mutual labels:  hacktoberfest
Lemmur
🐒 A mobile client for lemmy
Stars: ✭ 114 (+0.88%)
Mutual labels:  hacktoberfest
Daal4py
sources for daal4py - a convenient Python API to oneDAL
Stars: ✭ 113 (+0%)
Mutual labels:  hacktoberfest
Laravel Api Boilerplate
A Boilerplate Project For Laravel API's (NOT MAINTAINED)
Stars: ✭ 113 (+0%)
Mutual labels:  hacktoberfest
Competitive Programming
Hello Programmers 💻 , A one-stop Destination✏️✏️ for all your Competitive Programming Resources.📗📕 Refer CONTRIBUTING.md for contributions
Stars: ✭ 113 (+0%)
Mutual labels:  hacktoberfest
Grunt Contrib Uglify
Minify files with UglifyJS.
Stars: ✭ 1,477 (+1207.08%)
Mutual labels:  hacktoberfest
Madelineproto
Async PHP client/server API for the telegram MTProto protocol
Stars: ✭ 1,776 (+1471.68%)
Mutual labels:  hacktoberfest
Tikzcd Editor
A simple visual editor for creating commutative diagrams.
Stars: ✭ 1,627 (+1339.82%)
Mutual labels:  hacktoberfest
Collector Intellij
A PhpStorm plugin for refactoring to collections
Stars: ✭ 114 (+0.88%)
Mutual labels:  hacktoberfest
Scriptsdump
The biggest dump of scripts ever!
Stars: ✭ 114 (+0.88%)
Mutual labels:  hacktoberfest
Gitreflow
Reflow automatically creates pull requests, ensures the code review is approved, and squash merges finished branches to master with a great commit message template.
Stars: ✭ 1,488 (+1216.81%)
Mutual labels:  hacktoberfest
Graphql Live Query
Realtime GraphQL Live Queries with JavaScript
Stars: ✭ 112 (-0.88%)
Mutual labels:  hacktoberfest

graphql-schema

GitHub’s GraphQL Schema with validation. Automatically updated.

Test

Usage

Validation

const { validate } = require("@octokit/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("@octokit/graphql-schema");
schema.json; // JSON version
schema.idl; // IDL version

Schema as Types

import { graphql } from "@octokit/graphql";
import { Repository } from "@octokit/graphql-schema";

const { repository } = await graphql<{ repository: Repository }>(
  `
    {
      repository(owner: "octokit", name: "graphql.js") {
        issues(last: 3) {
          edges {
            node {
              title
            }
          }
        }
      }
    }
  `,
  {
    headers: {
      authorization: `token secret123`,
    },
  }
);

Local setup

git clone https://github.com/octokit/graphql-schema.git
cd graphql-schema
npm install
npm test

Update schema files (GITHUB_TOKEN requires no scope)

GITHUB_TOKEN=... npm run update

See also

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].