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.6.3 app/frontend/application/apollo_client.ts
decidim-0.6.3 decidim-comments/app/frontend/application/apollo_client.ts
decidim-comments-0.6.2 app/frontend/application/apollo_client.ts
decidim-0.6.2 decidim-comments/app/frontend/application/apollo_client.ts
decidim-comments-0.6.1 app/frontend/application/apollo_client.ts
decidim-0.6.1 decidim-comments/app/frontend/application/apollo_client.ts
decidim-comments-0.6.0 app/frontend/application/apollo_client.ts
decidim-0.6.0 decidim-comments/app/frontend/application/apollo_client.ts
decidim-comments-0.5.1 app/frontend/application/apollo_client.ts
decidim-0.5.1 decidim-comments/app/frontend/application/apollo_client.ts
decidim-comments-0.5.0 app/frontend/application/apollo_client.ts
decidim-0.5.0 decidim-comments/app/frontend/application/apollo_client.ts
decidim-comments-0.4.4 app/frontend/application/apollo_client.ts
decidim-0.4.4 decidim-comments/app/frontend/application/apollo_client.ts
decidim-comments-0.4.3 app/frontend/application/apollo_client.ts
decidim-comments-0.4.2 app/frontend/application/apollo_client.ts
decidim-comments-0.4.1 app/frontend/application/apollo_client.ts
decidim-0.4.3 decidim-comments/app/frontend/application/apollo_client.ts
decidim-0.4.2 decidim-comments/app/frontend/application/apollo_client.ts
decidim-0.4.1 decidim-comments/app/frontend/application/apollo_client.ts