<?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: How to maintain the array parent-child relation - tMongoDBInput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-maintain-the-array-parent-child-relation-tMongoDBInput/m-p/2343357#M111120</link>
    <description>&lt;P&gt;Please find the attached json data.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 07:30:14 GMT</pubDate>
    <dc:creator>sudarshank</dc:creator>
    <dc:date>2023-01-24T07:30:14Z</dc:date>
    <item>
      <title>How to maintain the array parent-child relation - tMongoDBInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-maintain-the-array-parent-child-relation-tMongoDBInput/m-p/2343356#M111119</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a job for extract the data from mongodb to sql server. I need to maintain parent child relation from array "dependentQuestionResponse". eg. See attached json image, "dependentQuestionResponse" there are _id 133 is parent and _id 278 is child, so how can we define that relationship.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the below json data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[{"_id":44444,"userId":1879,"questionResponse":[{"_id":660,"title":"questionTest1","description":"questionTest1","question":"questionTest1","type":"radio","response":{"value":["option_5"]},"dependentQuestionResponse":[]},{"_id":661,"title":"questionTest2","description":"questionTest2","question":"questionTest2","type":"radio","response":{"value":["option_5"]},"dependentQuestionResponse":[]},{"_id":662,"title":"questionTest3","description":"questionTest3","question":"questionTest3","type":"checkbox","response":{"value":["option_1","option_3","option_4"]},"dependentQuestionResponse":[]},{"_id":663,"title":"questionTest4","description":"questionTest4","question":"questionTest4","type":"text","response":{"value":[""]},"dependentQuestionResponse":[]}]},{"_id":55555,"userId":1191,"questionResponse":[{"_id":264,"title":"questionTest5","description":"questionTest5","question":"questionTest5","type":"radio","response":{"value":["option_1"]},"dependentQuestionResponse":[]},{"_id":265,"title":"questionTest6","description":"questionTest6","question":"questionTest6","type":"radio","response":{"value":["option_3"]},"dependentQuestionResponse":[{"_id":133,"title":"questionTest7","question":"questionTest7","type":"radio","response":{"value":["option_11"]},"dependentQuestionResponse":[{"_id":278,"title":"questionTest8","question":"questionTest8","type":"text","response":{"value":["street no 140"]},"dependentQuestionResponse":[]}]},{"_id":154,"title":"questionTest8","question":"questionTest8","type":"dropdown","response":{"value":["option_14"]},"dependentQuestionResponse":[]}]},{"_id":266,"title":"questionTest8","description":"questionTest8","question":"questionTest8","type":"radio","response":{"value":["option_1"]},"dependentQuestionResponse":[]}]}]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also attached the screenshots of Job and current output.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-maintain-the-array-parent-child-relation-tMongoDBInput/m-p/2343356#M111119</guid>
      <dc:creator>sudarshank</dc:creator>
      <dc:date>2024-11-15T22:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to maintain the array parent-child relation - tMongoDBInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-maintain-the-array-parent-child-relation-tMongoDBInput/m-p/2343357#M111120</link>
      <description>&lt;P&gt;Please find the attached json data.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 07:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-maintain-the-array-parent-child-relation-tMongoDBInput/m-p/2343357#M111120</guid>
      <dc:creator>sudarshank</dc:creator>
      <dc:date>2023-01-24T07:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to maintain the array parent-child relation - tMongoDBInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-maintain-the-array-parent-child-relation-tMongoDBInput/m-p/2343358#M111121</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I just take a look at your json data, I see there is no a field to indicate the relationship between them, the parent id might be 133 or 154 if I set the loop xpath to  $[*].questionResponse[*].dependentQuestionResponse[*].dependentQuestionResponse[*]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 08:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-maintain-the-array-parent-child-relation-tMongoDBInput/m-p/2343358#M111121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-29T08:23:41Z</dc:date>
    </item>
  </channel>
</rss>

