UNPKG

@octokit/graphql-schema

Version:

GitHub’s GraphQL Schema with validation. Automatically updated.

11 lines (9 loc) 312 B
import { readFileSync } from 'node:fs'; import validate from './lib/validate.js'; export { validate }; export const schema = { get idl () { return readFileSync(new URL('./schema.graphql', import.meta.url), 'utf8') }, json: JSON.parse(readFileSync(new URL('./schema.json', import.meta.url), 'utf8')) }