Last active
December 6, 2018 22:21
-
-
Save redbluenat/0eafabf97d91d2899abbee6cfc10a1a7 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
| const client = new ApolloClient({ | |
| link: new HttpLink({ | |
| uri: 'https://eu1.prisma.sh/natalia-majkowska/dogs-service/dev', | |
| headers: { | |
| authorization: 'YOUR_TOKEN' // on production you need to store token | |
| //in storage or in redux persist, for demonstration purposes we do this like that | |
| } | |
| }), | |
| cache: new InMemoryCache() | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment