@octokit/graphql
9.0.5 · 30 Aug 2026MIT50.7M / weekRepositoryHomepagenpmAtom feed
2.3.0 is the newest release of 2.x.
In short
2 breaking1 changed
- 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.
Release note
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
}
}`)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.