File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 11import getUserAgent from "universal-user-agent" ;
22import { Collection , HookCollection } from "before-after-hook" ;
33import { request } from "@octokit/request" ;
4+ import { graphql } from "@octokit/graphql" ;
45
56import { OctokitOptions , Parameters , Plugin } from "./types" ;
67import { 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
You can’t perform that action at this time.
0 commit comments