-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into geal/introspection-dedup-fix
- Loading branch information
Showing
56 changed files
with
648 additions
and
296 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
.changesets/feat_lrlna_enable_generate_query_fragments_by_default.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
### Compress subgraph operations by generating fragments | ||
|
||
The router now compresses operations sent to subgraphs by default by generating fragment | ||
definitions and using them in the operation. | ||
|
||
Initially, the router is using a very simple transformation that is implemented in both | ||
the JavaScript and Native query planners. We will improve the algorithm after the JavaScript | ||
planner is no longer supported. | ||
|
||
This replaces a previous experimental algorithm that was enabled by default. | ||
`experimental_reuse_query_fragments` attempted to intelligently reuse the fragment definitions | ||
from the original operation. Fragment generation is much faster, and in most cases produces | ||
better outputs too. | ||
|
||
If you are relying on the shape of fragments in your subgraph operations or tests, you can opt | ||
out of the new algorithm with the configuration below. Note we strongly recommend against | ||
relying on the shape of planned operations as new router features and optimizations may affect | ||
it, and we intend to remove `experimental_reuse_query_fragments` in a future release. | ||
|
||
```yaml | ||
supergraph: | ||
generate_query_fragments: false | ||
experimental_reuse_query_fragments: true | ||
``` | ||
By [@lrlna](https://github.com/lrlna) in https://github.com/apollographql/router/pull/6013 |
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.