Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 976 Bytes

remove_key.md

File metadata and controls

49 lines (36 loc) · 976 Bytes

remove_key

This processor removes the _key metadata value for any DataEntity or DataWindow.

Usage

Remove the _key of records

Example of a job using the remove_key processor

{
    "name" : "testing",
    "workers" : 1,
    "slicers" : 1,
    "lifecycle" : "once",
    "assets" : [
        "standard"
    ],
    "operations" : [
        {
            "_op": "test-reader"
        },
        {
            "_op": "remove_key"
        }
    ]
}

Output of example job

const data = [
    DataEntity.make({ name: 'chilly' }, { _key: 1 }),
]

const results = await processor.run(data);

results[0].getKey() === undefined

Parameters

Configuration Description Type Notes
_op Name of operation, it must reflect the exact name of the file String required