Remove Transformer
Defining a Remove section¶
Removing is for deleting data that should not be sent on to the destination system. The processor takes an array of property keys to be removed.
Property Slug | Description |
---|---|
processor | 'REMOVE' |
removeKeysKey | The key to the object with the property slug to remove |
Here is an example of the remove processor TransformTask
///map file data
direction: {
transformOrder: [{processor: 'REMOVE', removeKeysKey: 'removeKey'}],
removeKey: ['protectedValue']
}
///end map file data
const data = {
name: 'Bob',
protectedValue: 'A Secret'
}
//... transform data
//Expected Results
//{
// name: 'Bob'
//}