diff --git a/examples/apollo-engine/index.js b/examples/apollo-engine/index.js index 76bbc63408..b979e81731 100644 --- a/examples/apollo-engine/index.js +++ b/examples/apollo-engine/index.js @@ -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())