Skip to main content
The “Write all items to a file” step writes all its input items to a file and returns the path of the created file.

Fields

  • Destination filesystem (required) The filesystem on which the file should be created.
  • Format to serialize items (required) Select a format to use when serializing items.
  • Destination path to write the file (required) The destination path of the file to write.
  • When the file exists Select an action to execute when the destination file already exists. The default is to overwrite the file.

Example input

Each line is an input item of the transformer.
{"id": 1, "stock": 5}
{"id": 2, "stock": 2}
{"id": 3, "stock": 0}
{"id": 4, "stock": 0}
{"id": 5, "stock": 1}

Example output

A single item.
{
  "path": "stock.ndjson"
}