ipsos-components
Version:
Material Design components for Angular
12 lines (8 loc) • 489 B
text/typescript
import { ApolloClient, createNetworkInterface } from 'apollo-client';
// Paste your endpoint for the Simple API here.
// Info: https://github.com/graphcool-examples/angular-apollo-instagram-example#2-create-graphql-api-with-graphcool
const networkInterface = createNetworkInterface({ uri: 'https://api.graph.cool/simple/v1/cjb1th44h2mxb0122tpl8moht' })
const client = new ApolloClient({ networkInterface });
export function provideClient(): ApolloClient {
return client;
}