You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more complex authentication strategies such as GitHub Apps or Basic, we recommend the according authentication library exported by [`@octokit/auth`](https://github.com/octokit/auth.js).
A GraphQL query may respond with partial data accompanied by errors. In this case we will throw an error but the partial data will still be accessible through `error.data`
315
314
316
315
```js
317
-
let { graphql } =require("@octokit/graphql");
316
+
import { graphql } from"@octokit/graphql";
318
317
graphql =graphql.defaults({
319
318
headers: {
320
319
authorization:`token secret123`,
@@ -379,10 +378,10 @@ try {
379
378
You can pass a replacement for [the built-in fetch implementation](https://github.com/bitinn/node-fetch) as `request.fetch` option. For example, using [fetch-mock](http://www.wheresrhys.co.uk/fetch-mock/) works great to write tests
0 commit comments