Created
February 21, 2020 15:30
-
-
Save r3dm1ke/af3c9900404b0efee53bb20d722f7ef9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import ApolloClient from 'apollo-boost'; | |
| const client = new ApolloClient({ | |
| uri: 'https://api.github.com/graphql', | |
| headers: { | |
| Authorization: `bearer ${process.env.REACT_APP_GITHUB_KEY}` | |
| } | |
| }); | |
| export default client; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment