Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide new requestIsBatched field to gateway compatibility layer (#7118
) This field was added today in v3.11.0 and v4.1.0. That means that if you installed an older version of Gateway that gets its types from AS3 rather than from `@apollo/server-gateway-interface` it would suddenly start expecting this field on its GraphQLRequestContext. We fixed that problem by releasing v3.11.1 which makes the field optional. But it still seems reasonable to provide it if it's available... but we keep the field optional in the compatibility interface so that new Gateway doesn't end up requiring new Server.
- Loading branch information
Showing
3 changed files
with
10 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,6 @@ | ||
--- | ||
'@apollo/server-gateway-interface': patch | ||
'@apollo/server': patch | ||
--- | ||
|
||
Provide new `GraphQLRequestContext.requestIsBatched` field to gateways, because we did add it in a backport to AS3 and the gateway interface is based on AS3. |
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