Packages

@octokit/graphql

9.0.5 · 30 Aug 2026MIT50.7M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.0

major7 Jan 2019Where it was published

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 just Error

  • 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 of graphql(query)

Breaking changes

  • Breaking

    If a query fails due to a GraphQL error, the thrown Error now has the name GraphqlError. Before it was just Error

  • 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.