Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created October 8, 2020 10:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
import {ApolloServer} from 'apollo-server'
import { resolvers } from './src/resolvers';
import { buildSchema } from 'type-graphql';
const schema = buildSchema({
resolvers,
});
const server = new ApolloServer({ schema, resolvers });
server.listen().then(({ url }) => {
console.log(`🚀 Server ready at ${url}`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment