Skip to content

Commit a416d8c

Browse files
committed
feat: octokit.graphql()
1 parent cb47bf3 commit a416d8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import getUserAgent from "universal-user-agent";
22
import { Collection, HookCollection } from "before-after-hook";
33
import { request } from "@octokit/request";
4+
import { graphql } from "@octokit/graphql";
45

56
import { OctokitOptions, Parameters, Plugin } from "./types";
67
import { VERSION } from "./version";
@@ -56,6 +57,7 @@ export class Octokit {
5657
}
5758

5859
this.request = request.defaults(requestDefaults);
60+
this.graphql = graphql.defaults(requestDefaults);
5961
this.hook = hook;
6062

6163
// apply plugins
@@ -66,6 +68,7 @@ export class Octokit {
6668

6769
// assigned during constructor
6870
request: typeof request;
71+
graphql: typeof graphql;
6972
hook: HookCollection;
7073

7174
// allow for plugins to extend the Octokit instance

0 commit comments

Comments
 (0)