{"id":13493273,"url":"https://github.com/octokit/graphql-schema","last_synced_at":"2025-05-16T09:05:25.152Z","repository":{"id":37934464,"uuid":"113731831","full_name":"octokit/graphql-schema","owner":"octokit","description":"GitHub’s GraphQL Schema with validation. Automatically updated.","archived":false,"fork":false,"pushed_at":"2025-05-05T19:01:00.000Z","size":17080,"stargazers_count":185,"open_issues_count":6,"forks_count":59,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-05T19:23:55.417Z","etag":null,"topics":["generated","graphql","hacktoberfest","octokit-js","schema","specification"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octokit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-12-10T07:33:52.000Z","updated_at":"2025-04-23T20:25:24.000Z","dependencies_parsed_at":"2023-09-22T08:25:38.646Z","dependency_job_id":"1fe3963a-57d7-4993-8c33-752b1ff577a0","html_url":"https://github.com/octokit/graphql-schema","commit_stats":{"total_commits":772,"total_committers":16,"mean_commits":48.25,"dds":0.6437823834196892,"last_synced_commit":"856e1f737f17603ba35d5ab03cacaefc09b2cae1"},"previous_names":["gr2m/github-graphql-schema"],"tags_count":499,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octokit%2Fgraphql-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octokit%2Fgraphql-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octokit%2Fgraphql-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octokit%2Fgraphql-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octokit","download_url":"https://codeload.github.com/octokit/graphql-schema/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254501557,"owners_count":22081528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["generated","graphql","hacktoberfest","octokit-js","schema","specification"],"created_at":"2024-07-31T19:01:13.746Z","updated_at":"2025-05-16T09:05:24.243Z","avatar_url":"https://github.com/octokit.png","language":"JavaScript","readme":"# graphql-schema\n\n\u003e GitHub’s GraphQL Schema with validation. Automatically updated.\n\n![Test](https://github.com/octokit/graphql-schema/workflows/Test/badge.svg)\n\n## Usage\n\n### Validation\n\n```js\nimport { validate } from \"@octokit/graphql-schema\";\nconst errors = validate(`\n{\n  viewer {\n    login\n  }\n}\n`);\n\n// errors is array. Contains errors if any\n```\n\nYou can also load the current Schema directly as JSON or [IDL](https://en.wikipedia.org/wiki/Interface_description_language).\n\n```js\nimport { schema } from \"@octokit/graphql-schema\";\nschema.json; // JSON version\nschema.idl; // IDL version\n```\n\n### Schema as Types\n\n```ts\nimport { graphql } from \"@octokit/graphql\";\nimport { Repository } from \"@octokit/graphql-schema\";\n\nconst { repository } = await graphql\u003c{ repository: Repository }\u003e(\n  `\n    {\n      repository(owner: \"octokit\", name: \"graphql.js\") {\n        issues(last: 3) {\n          edges {\n            node {\n              title\n            }\n          }\n        }\n      }\n    }\n  `,\n  {\n    headers: {\n      authorization: `token secret123`,\n    },\n  },\n);\n```\n\n## Local setup\n\n```\ngit clone https://github.com/octokit/graphql-schema.git\ncd graphql-schema\nnpm install\nnpm test\n```\n\nUpdate schema files (`GITHUB_TOKEN` requires no scope)\n\n```\nGITHUB_TOKEN=... npm run update\n```\n\n## See also\n\n- [octokit/openapi](https://github.com/octokit/openapi) – GitHub's OpenAPI specification with `x-octokit` extension\n- [octokit/webhooks](https://github.com/octokit/webhooks) – GitHub Webhooks specifications\n- [octokit/app-permissions](https://github.com/octokit/app-permissions) – GitHub App permission specifications\n\n## LICENSE\n\n[MIT](LICENSE.md)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctokit%2Fgraphql-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctokit%2Fgraphql-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctokit%2Fgraphql-schema/lists"}