-
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.
Changelog for PR #4038: Port to apollo-compiler 1.0 beta
- Loading branch information
1 parent
606dad0
commit 1d61451
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
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,13 @@ | ||
### Port to apollo-compiler 1.0 beta ([PR #4038](https://github.com/apollographql/router/pull/4038)) | ||
|
||
Version 1.0 is a near-complete rewrite of `apollo-compiler`. | ||
Using it in the Router unblocks a lot of upcoming work. | ||
|
||
As a more immediate benefit, some serialization-related bugs including | ||
[Issue #3541](https://github.com/apollographql/router/issues/3541) are fixed. | ||
The representation of GraphQL documents in previous compiler versions was immutable. | ||
When modifying a query (such as to remove `@authenticated` fields from an unauthenticated request) | ||
the Router would build a new data structure with `apollo-encoder`, serialize it, and reparse it. | ||
`apollo-compiler`` 1.0 allows mutating a document in-place, skipping the serialization step entirely. | ||
|
||
By [@SimonSapin](https://github.com/SimonSapin) in https://github.com/apollographql/router/pull/4038 |