Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Add tracing & cache control the express server and observe queries in…
Browse files Browse the repository at this point in the history
… GraphiQL #graphql-in-production

[API]

### Instructions
1. Activate the `tracing` & `cacheControl` option on Apollo Server
2. Run some operations in GraphiQL and inspect results
---
### Tips
- Edit `api/src/server/index.js`
- `tracing` & `cacheControl` options are `Boolean`: you need to set it to `true`
  • Loading branch information
xavxyz authored and pauldowman committed Mar 16, 2018
1 parent e481dae commit 93417e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ const startServer = async () => {
...req.context,
},
debug: true,
tracing: true,
cacheControl: true,
}))(req, res, next);
})(req, res, next);
});
Expand Down

0 comments on commit 93417e1

Please sign in to comment.