Client.js 296 Bytes
import ApolloClient from "apollo-boost";
import { defaults, resolvers } from "./ClientState";

export default new ApolloClient({
  uri: "http://localhost:4000",
  clientState: {
    defaults,
    resolvers,
  },
  headers: {
    Authorization: `Bearer ${localStorage.getItem("token")}`,
  },
});