Skip to content

Commit 72b33a9

Browse files
Add note on returning event object in handler
1 parent aa06d87 commit 72b33a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/connections/functions/insert-functions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ async function onTrack(event) {
100100

101101
To change which event type the handler listens to, you can rename it to the name of the message type. For example, if you rename this function `onIdentify`, it listens for "Identify" events instead.
102102

103+
> info ""
104+
> To ensure the Destination processes an event payload modified by the Function, return the `event` object at the handler's end.
105+
103106
> info ""
104107
> Functions' runtime includes a `fetch()` polyfill using a `node-fetch` package. Check out the [node-fetch documentation](https://www.npmjs.com/package/node-fetch){:target="_blank"} for usage examples.
105108

0 commit comments

Comments
 (0)