Replace some fallback values to match the value type (#1421)

This commit is contained in:
lublak
2021-03-08 18:45:35 +01:00
committed by GitHub
parent 5a214fb4aa
commit 5da61ef252
6 changed files with 8 additions and 8 deletions

View File

@@ -236,7 +236,7 @@ export class GraphQL implements INodeType {
requestOptions.body = {
query: gqlQuery,
variables: this.getNodeParameter('variables', itemIndex, {}) as object,
operationName: this.getNodeParameter('operationName', itemIndex, null) as string,
operationName: this.getNodeParameter('operationName', itemIndex) as string,
};
if (typeof requestOptions.body.variables === 'string') {
try {