UNPKG

react-static

Version:

A progressive static site generator for React

15 lines (12 loc) 350 B
import { ApolloClient } from 'apollo-client' import { HttpLink } from 'apollo-link-http' import { InMemoryCache } from 'apollo-cache-inmemory' import fetch from 'node-fetch' const client = new ApolloClient({ link: new HttpLink({ fetch, uri: 'http://fake.graphql.guru/graphql', }), cache: new InMemoryCache(), }) export default client