Hi all! To further practice the concepts in the learn relay tutorial, I'm attempting to plug the learnrelay starter app into the github graphql endpoint. I plugged in the endpoint into package.json
"graphql": {
"request": {
"url": "
https://api.github.com/graphql"
}
},
as well as in index.js
Relay.injectNetworkLayer(
new Relay.DefaultNetworkLayer('
https://api.github.com/graphql', {
headers: {
Authorization: 'bearer MYSECRETTOKEN'
}
})
)