Skip to content

Commit ca96574

Browse files
authored
Merge pull request #188501 from diberry/diberry/0214-function-fix
Azure Functions - JS - Context.done 2
2 parents df67caa + 51de3bb commit ca96574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-functions/functions-bindings-return-value.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ Here's the output binding in the *function.json* file:
118118
}
119119
```
120120

121-
In JavaScript, the return value goes in the context.body:
121+
Here's the JavaScript code:
122122

123123
```javascript
124124
module.exports = function (context, input) {
125125
var json = JSON.stringify(input);
126126
context.log('Node.js script processed queue message', json);
127-
context.bindings.json = json;
127+
return json;
128128
}
129129
```
130130
# [PowerShell](#tab/PowerShell)

0 commit comments

Comments
 (0)