<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Insert ObjectID in to mongo array elements in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Insert-ObjectID-in-to-mongo-array-elements/m-p/2246904#M32264</link>
    <description>&lt;P&gt;Can someone help here&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 20:44:50 GMT</pubDate>
    <dc:creator>Gattuchaitanya</dc:creator>
    <dc:date>2020-07-07T20:44:50Z</dc:date>
    <item>
      <title>Insert ObjectID in to mongo array elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-ObjectID-in-to-mongo-array-elements/m-p/2246903#M32263</link>
      <description>&lt;P&gt;Hi All ,&lt;BR /&gt;&lt;BR /&gt;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&amp;nbsp;@type with fixed value as ObjectId but it didn't worked. Can someone assist us here.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We need the output as below:&lt;BR /&gt;&lt;BR /&gt;{&lt;/P&gt; 
&lt;P&gt;"_id":"12243",&lt;/P&gt; 
&lt;P&gt;"name": "ABCD",&lt;/P&gt; 
&lt;P&gt;"city":"XYZ",&lt;/P&gt; 
&lt;P&gt;"requests":[&lt;/P&gt; 
&lt;P&gt;{&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;"_id" : ObjectId("5efdcf15ea9355c419fc9699"), // How to generate this ObjectId using talend tool in Mongo&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;"type":"department",&lt;/P&gt; 
&lt;P&gt;"value":"Science"&lt;/P&gt; 
&lt;P&gt;},&lt;/P&gt; 
&lt;P&gt;{&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;"_id" : ObjectId("K279kkqasj8ac023878hjc"), // How to generate this ObjectId using talend tool in Mongo&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;"type":"department",&lt;/P&gt; 
&lt;P&gt;"value":"Commerce"&lt;/P&gt; 
&lt;P&gt;}&lt;/P&gt; 
&lt;P&gt;]&lt;/P&gt; 
&lt;P&gt;}&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-ObjectID-in-to-mongo-array-elements/m-p/2246903#M32263</guid>
      <dc:creator>Gattuchaitanya</dc:creator>
      <dc:date>2024-11-16T01:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Insert ObjectID in to mongo array elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-ObjectID-in-to-mongo-array-elements/m-p/2246904#M32264</link>
      <description>&lt;P&gt;Can someone help here&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 20:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-ObjectID-in-to-mongo-array-elements/m-p/2246904#M32264</guid>
      <dc:creator>Gattuchaitanya</dc:creator>
      <dc:date>2020-07-07T20:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Insert ObjectID in to mongo array elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-ObjectID-in-to-mongo-array-elements/m-p/2246905#M32265</link>
      <description>&lt;P&gt;Can someone help here&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 20:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-ObjectID-in-to-mongo-array-elements/m-p/2246905#M32265</guid>
      <dc:creator>Gattuchaitanya</dc:creator>
      <dc:date>2020-07-07T20:44:50Z</dc:date>
    </item>
  </channel>
</rss>

