Skip to content

Commit

Permalink
chore: improve readme, add sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Oct 15, 2024
1 parent be0e931 commit 19d14d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ import dotenv from 'dotenv';
import { ApolloGateway } from '@apollo/gateway';
import { ApolloServer } from '@apollo/server';
import { startStandaloneServer } from '@apollo/server/standalone';
import { SchemaLoader } from '@wundergraph/cosmo-schema-loader';
import { SchemaLoader } from '@wundergraph/cosmo-to-apollo-schema';

dotenv.config();

// By default, the schema is fetched from the Cosmo Cloud CDN
// Fetches from Cosmo Cloud CDN by default
const cosmoSchemaLoader = new SchemaLoader({
cdn: {
// Provide the token for your federated graph on Cosmo.
// You can generate it using `wgc router token create`
// Token for your federated graph on cosmo.
token: process.env.GRAPH_TOKEN,
},
pollInterval: 3000,
Expand All @@ -46,8 +45,9 @@ const server = new ApolloServer({
});

startStandaloneServer(server).then(({ url }) => {
console.log(`🚀 Server is running at ${url}`);
console.log(`🚀 Server ready at ${url}`);
});

```

### Our partners ❤️
Expand Down

0 comments on commit 19d14d1

Please sign in to comment.