-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supergraph coprocessor implementation (#3647)
Co-authored-by: o0Ignition0o <[email protected]>
- Loading branch information
1 parent
ffa1d12
commit cf19df6
Showing
11 changed files
with
1,134 additions
and
18 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,33 @@ | ||
### Supergraph coprocessor implementation ([PR #3647](https://github.com/apollographql/router/pull/3647)) | ||
|
||
Coprocessors now support supergraph service interception. | ||
|
||
On the request side, the coprocessor payload can contain: | ||
- method | ||
- headers | ||
- body | ||
- context | ||
- sdl | ||
|
||
On the response side, the payload can contain: | ||
- status_code | ||
- headers | ||
- body | ||
- context | ||
- sdl | ||
|
||
The supergraph request body contains: | ||
* query | ||
* operation name | ||
* variables | ||
* extensions | ||
|
||
The supergraph response body contains: | ||
* label | ||
* data | ||
* errors | ||
* extensions | ||
|
||
When using `@defer` or subscriptions a supergraph response may contain multiple GraphQL responses, and the coprocessor will be called for each. | ||
|
||
By [@Geal](https://github.com/Geal) in https://github.com/apollographql/router/pull/3647 |
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.