Sha256: ebceb10c47e48e597d05009efdc3caa016377a22a466b2422891dd1242e7552c

Contents?: true

Size: 364 Bytes

Versions: 56

Compression:

Stored size: 364 Bytes

Contents

import ApolloClient, { createNetworkInterface } from "apollo-client";

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

const client = new ApolloClient({
  networkInterface,
});

export default client;

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
decidim-comments-0.8.4 app/frontend/application/apollo_client.ts
decidim-comments-0.8.3 app/frontend/application/apollo_client.ts
decidim-comments-0.8.2 app/frontend/application/apollo_client.ts
decidim-comments-0.8.1 app/frontend/application/apollo_client.ts
decidim-comments-0.8.0 app/frontend/application/apollo_client.ts
decidim-comments-0.7.4 app/frontend/application/apollo_client.ts
decidim-comments-0.7.3 app/frontend/application/apollo_client.ts
decidim-comments-0.7.2 app/frontend/application/apollo_client.ts
decidim-comments-0.7.1 app/frontend/application/apollo_client.ts
decidim-comments-0.7.0 app/frontend/application/apollo_client.ts
decidim-comments-0.6.8 app/frontend/application/apollo_client.ts
decidim-0.6.8 decidim-comments/app/frontend/application/apollo_client.ts
decidim-comments-0.6.7 app/frontend/application/apollo_client.ts
decidim-0.6.7 decidim-comments/app/frontend/application/apollo_client.ts
decidim-comments-0.6.6 app/frontend/application/apollo_client.ts
decidim-0.6.6 decidim-comments/app/frontend/application/apollo_client.ts
decidim-comments-0.6.5 app/frontend/application/apollo_client.ts
decidim-0.6.5 decidim-comments/app/frontend/application/apollo_client.ts
decidim-comments-0.6.4 app/frontend/application/apollo_client.ts
decidim-0.6.4 decidim-comments/app/frontend/application/apollo_client.ts