Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created December 7, 2020 07:10
Show Gist options
  • Save velotiotech/9d5286d9913a66299e0c668cbeeb1923 to your computer and use it in GitHub Desktop.
Save velotiotech/9d5286d9913a66299e0c668cbeeb1923 to your computer and use it in GitHub Desktop.
import { ApolloServer } from 'apollo-server';
import { ApolloGateway } from '@apollo/gateway';
const gateway = new ApolloGateway({
serviceList: [],
});
const server = new ApolloServer({ gateway, subscriptions: false });
server.listen().then(({ url }) => {
console.log(`Server ready at url: ${url}`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment