Sha256: 3670deb0a0e8c9b32542c1262b24ee25988ff3132ca8fdb695bcfb2100730b56

Contents?: true

Size: 361 Bytes

Versions: 7

Compression:

Stored size: 361 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

7 entries across 7 versions & 2 rubygems

Version Path
decidim-comments-0.0.6 app/frontend/application/apollo_client.js
decidim-0.0.6 decidim-comments/app/frontend/application/apollo_client.js
decidim-comments-0.0.5 app/frontend/application/apollo_client.js
decidim-0.0.5 decidim-comments/app/frontend/application/apollo_client.js
decidim-0.0.4 decidim-comments/app/frontend/application/apollo_client.js
decidim-comments-0.0.3 app/frontend/application/apollo_client.js
decidim-0.0.3 decidim-comments/app/frontend/application/apollo_client.js