Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All ,
We are migrating the data from Oracle to Mongo DB using Talend tool and we would need to add the object Id to each object inside an array. We have tried to use attribute @type with fixed value as ObjectId but it didn't worked. Can someone assist us here.
We need the output as below:
{
"_id":"12243",
"name": "ABCD",
"city":"XYZ",
"requests":[
{
"_id" : ObjectId("5efdcf15ea9355c419fc9699"), // How to generate this ObjectId using talend tool in Mongo
"type":"department",
"value":"Science"
},
{
"_id" : ObjectId("K279kkqasj8ac023878hjc"), // How to generate this ObjectId using talend tool in Mongo
"type":"department",
"value":"Commerce"
}
]
}
Can someone help here
Can someone help here