Skip to content

Commit 4efc82e

Browse files
authored
Fix payload init issue (#44)
* fix payload init * update version
1 parent 3a1e1f0 commit 4efc82e

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@ A NodeRed node to execute GraphQL Queries.
99

1010
## Change Log
1111

12-
| Vers | Changes |
13-
| ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
14-
| 2.1.0 | Bearer Token Authentication |
15-
| 2.0.1 | Update dependencies (`axios` & `mustache`), fix node-red scorecard issues |
16-
| 2.0.0 | GraphQL response is now on `payload.graphql` instead of replacing `payload`. This is a breaking change. Addresses #32 |
17-
| 1.4.1 | Bump `follow-redirects` to 1.14.8 |
18-
| 1.4.0 | improve debug, bump `follow-redirects` |
19-
| 1.3.0 | bump axios to address CVE-2021-3749 |
20-
| 1.2.0 | [Fix node not showing in palette](https://github.com/rgstephens/node-red-contrib-graphql/pull/24), bump axios |
12+
| Vers | Changes |
13+
| ----- | -------------------------------------------------------- |
14+
| 2.1.1 | Fix payload init issue |
15+
| 2.1.0 | Bearer Token Authentication |
16+
| 2.0.1 | Update dependencies (`axios` & `mustache`), fix node-red scorecard issues |
17+
| 2.0.0 | GraphQL response is now on `payload.graphql` instead of replacing `payload`. This is a breaking change. Addresses #32 |
18+
| 1.4.1 | Bump `follow-redirects` to 1.14.8 |
19+
| 1.4.0 | improve debug, bump `follow-redirects` |
20+
| 1.3.0 | bump axios to address CVE-2021-3749 |
21+
| 1.2.0 | [Fix node not showing in palette](https://github.com/rgstephens/node-red-contrib-graphql/pull/24), bump axios |
2122
| 1.1.0 | [Error Handling & Config Templates](https://github.com/rgstephens/node-red-contrib-graphql/pull/11/), [showDebug & customHeaders](https://github.com/rgstephens/node-red-contrib-graphql/pull/22/conflicts), [Bump axios](https://github.com/rgstephens/node-red-contrib-graphql/pull/20) |
22-
| 1.0.0 | pass Authorization via msg.authorization, [PR #21](https://github.com/rgstephens/node-red-contrib-graphql/pull/21) |
23-
| 0.0.6 | Initial Release |
23+
| 1.0.0 | pass Authorization via msg.authorization, [PR #21](https://github.com/rgstephens/node-red-contrib-graphql/pull/21)|
24+
| 0.0.6 | Initial Release |
2425

2526
## GraphQL Nodes
2627

graphql.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = function(RED) {
33
var axios = require("axios");
44
var mustache = require("mustache");
55

6-
var vers = "2.1.0";
6+
var vers = "2.1.1";
77

88
function isReadable(value) {
99
return typeof value === 'object' && typeof value._read === 'function' && typeof value._readableState === 'object'
@@ -151,7 +151,6 @@ module.exports = function(RED) {
151151
shape: "dot",
152152
text: RED._("graphql.status.success")
153153
});
154-
node.msg.payload = {}
155154
node.msg.payload.graphql = response.data.data; // remove .data to see entire response
156155
if (node.showDebug){
157156
node.msg.debugInfo = {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-contrib-graphql",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "A Node-RED node to make GraphQL calls",
55
"dependencies": {
66
"axios": "~1.2.1",

0 commit comments

Comments
 (0)