Releases: octokit/graphql.js
Releases · octokit/graphql.js
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.0.2
v2.0.1
v2.0.0
2.0.0 (2019-01-07)
- remove
{data}
namespace from result ofgraphql(query)
(0040601)
BREAKING CHANGES
- If a query fails due to a GraphQL error, the thrown Error now has the name
GraphqlError
. Before it was justError
- 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
}
}`)