If the input message is a KeyValue, the unwrap-key-value transform function extracts the KeyValue’s key or value and makes it the record value.
Given the input:
{
"key": {
"keyField": "key"
},
"value": {
"valueField": "value"
}
With an agent configuration of:
- name: "Unwrap key value"
type: "unwrap-key-value"
input: "input-topic" # optional
output: "output-topic" # optional
configuration:
unwrapKey: false
The output would be:
{
"valueField": "value"
}
Checkout the full configuration properties in the API Reference page.