MCPcopy
hub / github.com/stackshareio/awesome-stacks / getApolloClient

Function getApolloClient

src/utils/github.js:7–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const gql = require("graphql-tag")
6
7function getApolloClient() {
8 return new ApolloClient({
9 link: new HttpLink({
10 uri: "https://api.github.com/graphql",
11 fetch,
12 headers: {
13 Authorization: `bearer ${process.env.GITHUB_ACCESS_TOKEN}`,
14 },
15 }),
16 cache: new InMemoryCache(),
17 })
18}
19
20module.exports = {
21 getGitHubTool: function ({ owner, name }) {

Callers 1

github.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected