Skip to content

Commit

Permalink
Add a little comment for gzip compression
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien0102 committed Feb 14, 2018
1 parent 6353657 commit 7412740
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/apollo-engine/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const engine = new Engine({
})
engine.start()

// Enable gzip compression
// ref: https://www.apollographql.com/docs/engine/setup-node.html#enabling-compression
server.express.use(compression())
server.express.use(engine.expressMiddleware())

Expand Down

0 comments on commit 7412740

Please sign in to comment.