-
-
Save AgustinCastella/0ae456ac891b624c26a657b7ef1eb10b to your computer and use it in GitHub Desktop.
Create Apollo Server instance with Express
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const server = new ApolloServer({ typeDefs, resolvers }); | |
const app = express(); | |
server.applyMiddleware({ app }); | |
app.listen({ port: 4000 }, () => | |
console.log(`🚀 Server ready at http://localhost:4000${server.graphqlPath}`) | |
); | |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment