This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
graphql-lightning-talk/assets/js/client.js

13 lines
284 B
JavaScript
Raw Normal View History

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;