Created
January 22, 2018 10:45
-
-
Save zubairov/fa64d274ecad83c2c8d6e72ef39f4022 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Please note only Node.js code is supported here | |
console.log('We have a message query=%j and body=%j', msg.query || {}, msg.body || {}); | |
if (msg.query && msg.body) { | |
msg.body.__query = msg.query; | |
} | |
// Emit the data event | |
emitter.emit('data', msg); | |
// No need to emit end | |
console.log('Finished execution'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__query" : { | |
"foo":"bar", | |
"value":"123" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment