Skip to content

Latest commit

 

History

History

schema-loader-cdn

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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,
});