Skip to content

Commit

Permalink
Fix bugs with spinner (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv committed Dec 16, 2021
1 parent 1aed918 commit 11c772d
Show file tree
Hide file tree
Showing 14 changed files with 48,046 additions and 366 deletions.
29 changes: 29 additions & 0 deletions .graphqlrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const fs = require('fs');
const path = require('path');

// get credentials from config file
const accessTokenFile = path.resolve(
__dirname,
'./src/test/private/accessToken.txt'
);

const accessToken = fs
.readFileSync(accessTokenFile, {
encoding: 'utf-8',
})
.trim();

module.exports = {
schema: 'github-schema.graphql',
extensions: {
endpoints: {
'GitHub API V4': {
url: 'https://api.github.com/graphql',
headers: {
Authorization: `token ${accessToken.trim()}`,
'user-agent': 'JS GraphQL',
},
},
},
},
};
Loading

0 comments on commit 11c772d

Please sign in to comment.