@octokit/graphql
9.0.5 · 30 Aug 2026MIT50.7M / weekRepositoryHomepagenpmAtom feed
67 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 4.x
4.2.2
13 Oct 2019package: version in published package
4.2.1
10 Oct 2019types: document query argument in graphql interface
4.2.0
4 Sep 2019Use custom
@octokit/requestinstance
4.1.0
4 Sep 2019README: authenticate with
@octokit/auth
4.0.0
16 Aug 2019Typescript definitions
Breaking changes
Before
const graphql = require('@octokit/graphql')Now
const { graphql } = require('@octokit/graphql') // or: import { graphql } from '@octokit/graphql'Features
Typescript definitions
- 3.x
3.0.1
12 Jul 2019package: update universal-user-agent to version 3.0.0
3.0.0
12 Jul 2019- Removed
travis: drop Node 6, add Node 12
- Breaking
travis: Official support for Node 6 has been dropped
- 2.x
2.3.0
28 Sep 20222.1.3
9 Jul 2019package: update @octokit/request to version 5.0.0
2.1.1
9 Apr 2019package: update @octokit/request to version 3.0.0
2.1.0
5 Apr 2019error.dataon partial response
2.0.2
19 Mar 2019package: universal-user-agent
2.0.1
8 Jan 2019don’t send empty variables object
2.0.0
7 Jan 2019- Breaking
If a query fails due to a GraphQL error, the thrown Error now has the name
GraphqlError. Before it was justError - Breaking
The
{data}namespace from the graphql query result has been removed. The resulting data is now returned directly. Remove
{data}namespace from result ofgraphql(query)
Remove
{data}namespace from result ofgraphql(query)
Breaking changes
- Breaking
If a query fails due to a GraphQL error, the thrown Error now has the name
GraphqlError. Before it was justError - Breaking
The
{data}namespace from the graphql query result has been removed. The resulting data is now returned directly.
Before
const {data: {viewer}} = await graphql(`{ viewer { bioHtml } }`)After
const {viewer} = await graphql(`{ viewer { bioHtml } }`)- 1.x
1.0.0
26 Nov 2018Initial version
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.