next-with-apollo
Version:
Apollo HOC for Next.js
7 lines (6 loc) • 359 B
TypeScript
/// <reference types="node" />
import ApolloClient from 'apollo-client';
import { IncomingHttpHeaders } from 'http';
import 'isomorphic-unfetch';
import { InitApolloOptions } from './types';
export default function initApollo<TCache = any>(options: InitApolloOptions<TCache>, headers?: IncomingHttpHeaders, initialState?: TCache): ApolloClient<TCache>;