Documentationcurrent version
Help us improve the docs by fixing typos and proposing enhancements.

Nikita

Metadata "raw_output"

The raw_output metadata preserves the value returned by an action from modifications. Thus, the value returned inside the action handler is not altered.

  • Type: boolean
  • Default: false

For example, an object literal returned by the handler is not enriched with the $status and $log properties as it is by default:

nikita
.call(async function() {
  // Get the output
  const output = await this.call({
    $raw_output: true  }, function() {
    return {who: 'Nikita'}
  })
  console.log(output)
  // Print the output `{who: 'Nikita'}`
})
Edit on GitHub
Navigate
About

Nikita is an open source project hosted on GitHub and developed by Adaltas.