-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GET request deduplication, pass 'context' as 3rd param in JSON Schema…
… handler and expose HTTP details via extensions (#4356) * GET request deduplication and pass 'context' as 3rd param in JSON Schema handler * Improvements * Go * Go * chore(dependencies): updated changesets for modified dependencies * go go go * Cleanup * chore(dependencies): updated changesets for modified dependencies * Add more tests * chore(dependencies): updated changesets for modified dependencies * Go * chore(dependencies): updated changesets for modified dependencies Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0b96c33
commit b5c59ff
Showing
35 changed files
with
590 additions
and
101 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,8 @@ | ||
--- | ||
"@graphql-mesh/config": patch | ||
--- | ||
|
||
dependencies updates: | ||
|
||
- Removed dependency [`@whatwg-node/fetch@^0.3.0` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/null) (from `dependencies`) | ||
- Removed dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/fetchache/v/0.1.2) (from `dependencies`) |
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,7 @@ | ||
--- | ||
"@graphql-mesh/runtime": patch | ||
--- | ||
|
||
dependencies updates: | ||
|
||
- Added dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cross-helpers/v/0.2.2) (to `dependencies`) |
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,8 @@ | ||
--- | ||
"@graphql-mesh/utils": patch | ||
--- | ||
|
||
dependencies updates: | ||
|
||
- Added dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/fetchache/v/0.1.2) (to `dependencies`) | ||
- Added dependency [`@whatwg-node/[email protected]` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.3.2) (to `dependencies`) |
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,24 @@ | ||
--- | ||
"@graphql-mesh/config": minor | ||
"@graphql-mesh/graphql": minor | ||
"@graphql-mesh/json-schema": minor | ||
"@graphql-mesh/neo4j": minor | ||
"@graphql-mesh/odata": minor | ||
"@graphql-mesh/openapi": minor | ||
"@graphql-mesh/raml": minor | ||
"@graphql-mesh/soap": minor | ||
"@graphql-mesh/thrift": minor | ||
"@omnigraph/json-schema": minor | ||
"@graphql-mesh/utils": minor | ||
--- | ||
|
||
## Improvements on outgoing HTTP calls | ||
|
||
- Now Mesh's default fetch implementation deduplicates the same GET JSON requests in the same execution context | ||
- You should pass `Accept: application/json` to make this work. | ||
- JSON Schema, new OpenAPI and RAML handlers now take GraphQL context as 3rd parameter. If you use `customFetch`, you can use that value to access Mesh internals such as the incoming `Request` object. | ||
|
||
## HTTP Details in extensions for tracking HTTP calls | ||
|
||
You can add `includeHttpDetailsInExtensions: true` to your configuration file to get more information about HTTP calls done by Mesh during the execution in `extensions` field of the response. | ||
|
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.
b5c59ff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
graphql-mesh – ./
graphql-mesh-theguild.vercel.app
graphql-mesh-git-master-theguild.vercel.app
graphql-mesh-azure.vercel.app
www.graphql-mesh.com
graphql-mesh.com