Skip to content

Commit a172b42

Browse files
authored
Update CHANGELOG.md
1 parent 23c1fdd commit a172b42

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ This project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec/v2.
1212

1313
This PR adds a new `dry-run` option to the `Apollo-Expose-Query-Plan` header value that emits the query plans back to Studio for visualizations. This new value will *only* emit the query plan, and abort execution. This can be helpful for tools like `rover`, where query plan generation is needed but not full runtime, or for potentially prewarming query plan caches out of band.
1414

15+
```bash
16+
curl --request POST --include \
17+
--header 'Accept: application/json' \
18+
--header 'Apollo-Expose-Query-Plan: dry-run' \
19+
--url 'http://127.0.0.1:4000/' \
20+
--data '{"query": "{ topProducts { upc name } }"}'
21+
```
22+
1523
By [@aaronArinder](https://github.com/aaronArinder) and [@lennyburdette](https://github.com/lennyburdette) in https://github.com/apollographql/router/pull/6656.
1624

1725
### Enable Remote Proxy Downloads

0 commit comments

Comments
 (0)