ql
1
2import { ApolloClient, InMemoryCache, HttpLink } from '@apollo/client';
3
4const TOKEN = ''
5const client = new ApolloClient({
6link: new HttpLink({
7uri: 'https://api.github.com/graphql',
8headers: {
9Authorization: `Bearer ${TOKEN}`,
10}
11}),
12cache: new InMemoryCache()
13});
14
15export default client;
16