Sha256: 375db6291c4fcc3ddf9a29ff056322c3d75983be1a31d168ddbbb80bdfd8fa34

Contents?: true

Size: 478 Bytes

Versions: 4

Compression:

Stored size: 478 Bytes

Contents

import { InMemoryCache } from "apollo-cache-inmemory";
import { ApolloClient } from "apollo-client";
import { createHttpLink } from "apollo-link-http";

import "unfetch/polyfill";

// Create a custom network interface for Apollo since our
// API endpoint is not the default.
const httpLink = createHttpLink({
  uri: "/api",
  fetch,
  credentials: "same-origin",
});

const client = new ApolloClient({
  link: httpLink,
  cache: new InMemoryCache(),
});

export default client;

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-comments-0.9.3 app/frontend/application/apollo_client.ts
decidim-comments-0.9.2 app/frontend/application/apollo_client.ts
decidim-comments-0.9.1 app/frontend/application/apollo_client.ts
decidim-comments-0.9.0 app/frontend/application/apollo_client.ts