Created
January 28, 2020 11:08
-
-
Save zakirsajib/7c3ba9909786bb63a9454fc0525e7b94 to your computer and use it in GitHub Desktop.
Gatsby Source GitHub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
resolve: 'gatsby-source-github', | |
options: { | |
headers: { | |
Authorization: `Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`, | |
}, | |
queries: [ | |
`{ | |
viewer { | |
pinnedItems(first: 50, types: REPOSITORY) { | |
totalCount | |
nodes { | |
... on Repository { | |
id | |
name | |
languages(first: 10) { | |
nodes { | |
name | |
} | |
} | |
url | |
description | |
homepageUrl | |
} | |
} | |
} | |
} | |
}`, | |
], | |
}, | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment