Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 62abcf1

Browse files
authored
Merge pull request #324 from Shopify/jakxz/graphql-proxy-changelog
2 parents e451ab9 + a5625a4 commit 62abcf1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,25 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
1616

1717
- ⚠️ [Breaking] Stop responding to the request in the GraphQL Proxy function, returning Shopify's response instead [#312](https://github.com/Shopify/shopify-node-api/pull/312)
1818

19+
The examples below are in [express](https://expressjs.com/); you will now need to handle the response yourself.
20+
21+
Before:
22+
23+
```js
24+
app.post('/graphql', async (req, res) => {
25+
await Shopify.Utils.graphqlProxy(req, res);
26+
});
27+
```
28+
29+
After:
30+
31+
```js
32+
app.post('/graphql', async (req, res) => {
33+
const response = await Shopify.Utils.graphqlProxy(req, res);
34+
res.status(200).send(response.body);
35+
});
36+
```
37+
1938
## [2.1.0] - 2022-02-03
2039

2140
### Added

0 commit comments

Comments
 (0)