12 lines
284 B
JavaScript
12 lines
284 B
JavaScript
import { ApolloClient } from 'apollo-client';
|
|
import { HttpLink } from 'apollo-link-http';
|
|
import { InMemoryCache } from 'apollo-cache-inmemory';
|
|
|
|
const client = new ApolloClient({
|
|
link: new HttpLink({
|
|
uri: "/api"
|
|
}),
|
|
cache: new InMemoryCache(),
|
|
});
|
|
|
|
export default client;
|