Thanks. Here is is a sample document.
{
"_id": {
"$oid": "6334cefd0048787d5535ff16"
},
"userID": {
"$oid": "6307baab9f51747015fdb981"
},
"aggregatorID": "0000375",
"firstName": "damola",
"lastName": "akinkunmi",
"ref": "80573e71-38c3-4243-8660-f6dc8f988f6a",
"transactionID": "CLV000AB-2033HRNU-092822472300",
"totalAmount": {
"$numberDecimal": "5100.0"
},
"transactionAmount": {
"$numberDecimal": "5100.0"
},
"transactionFee": {
"$numberDecimal": "25.5"
},
"actionableAmount": {
"$numberDecimal": "5074.5"
},
"aggregatorCut": {
"$numberDecimal": "5.1000000000000005"
},
"cleverCut": {
"$numberDecimal": "9.434999999999999"
},
"type": "CASH_OUT",
"responseCode": "00",
"responseMessage": "APPROVED",
"preBalance": {
"$numberDecimal": "18213.125"
},
"postBalance": {
"$numberDecimal": "23287.625"
},
"walletHistoryID": 613261,
"walletID": 1809,
"walletActionAt": {
"$date": {
"$numberLong": "1664405248000"
}
},
"provider": "xxxxxx",
"slug": "/cashout/api/v1/transactions/6334cefd0048787d5535ff16",
"transactionDateTime": {
"$date": {
"$numberLong": "1664405248000"
}
},
"createdAt": {
"$date": {
"$numberLong": "1664405245000"
}
},
"updatedAt": {
"$date": {
"$numberLong": "1664405245000"
}
},
"businessManager": "002",
"rrn": "092822472300",
"pan": "539983******3741",
"terminalID": "CLV000AB",
"agentID": "0001787",
"status": "COMPLETED",
"debited": true,
"tracked": false
}
I want my output to like this
date : 2022-10-09
CASHOUT : 897663,088,
FUNDS_TRANSFER: 8900877,
WALLET_TOP_UP: 8890000
I look forward to getting help.