Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 350 Bytes

File metadata and controls

17 lines (13 loc) · 350 Bytes

Schema Loader CDN

This example uses Cosmo Cloud as the CDN provider.

Configuration :

import { SchemaLoader } from '@wundergraph/cosmo-to-apollo-schema';

// Fetches from cosmo cloud CDN by default unless specified
const cosmoSchemaLoader = new SchemaLoader({
  cdn: {
    token: process.env.GRAPH_TOKEN,
  },
  pollInterval: 3000,
});