<?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: [resolved] JSON format in tMongoDBOutput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-JSON-format-in-tMongoDBOutput/m-p/2222204#M15893</link>
    <description>Hi 
&lt;BR /&gt;The data node and the query node have to be defined in the json tree, the data node defines the data will be updated or inserted, the query node defines the query condition. In the below example, the id element is defined under the query node, it will compare the input id value with existing ids in target database, if id already exists, then update the data, otherwise, insert a new data. 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/674/1_20141202-1307.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBhw.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151916iC224772F37DFE83C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBhw.png" alt="0683p000009MBhw.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/674/2_20141202-1308.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBi1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149911i8DFAB2C2CCEE52EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBi1.png" alt="0683p000009MBi1.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Tue, 02 Dec 2014 12:09:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-02T12:09:12Z</dc:date>
    <item>
      <title>[resolved] JSON format in tMongoDBOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-JSON-format-in-tMongoDBOutput/m-p/2222203#M15892</link>
      <description>Hi, 
&lt;BR /&gt;I was looking at this document. 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/search/all?query=tMongoDBOutput&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tMongoDBOutput&amp;amp;content-lang=en&lt;/A&gt; 
&lt;BR /&gt;I am not able to understand how exactly to use data node and query node here.&amp;nbsp; 
&lt;BR /&gt;Also, the tMongoDBOutput component requires the schema to be same as input schema. 
&lt;BR /&gt;I have the input coming from a sql schema as: 
&lt;BR /&gt;&amp;nbsp;Name, DOB, class, subject1_marks, subject2_marks,subject3_marks, average_marks 
&lt;BR /&gt;I want to frame a json in my mongoDB like: 
&lt;BR /&gt;{ 
&lt;BR /&gt;&amp;nbsp;_id:{ name:"abc", DOB:"26-01-1947"}, 
&lt;BR /&gt;subjects: 
&lt;BR /&gt;} 
&lt;BR /&gt;Also i want to perform upsert operations where i can update marks for specific subjects and add additional fields like&amp;nbsp; 
&lt;BR /&gt;{ 
&lt;BR /&gt;&amp;nbsp;_id:{ name:"abc", DOB:"26-01-1947"}, 
&lt;BR /&gt;subjects: 
&lt;BR /&gt;} 
&lt;BR /&gt;How to do this? 
&lt;BR /&gt;I see upsert option but am not able to use it. Also how to use properties of mongo like $push and $set here. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks!</description>
      <pubDate>Sat, 16 Nov 2024 11:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-JSON-format-in-tMongoDBOutput/m-p/2222203#M15892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] JSON format in tMongoDBOutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-JSON-format-in-tMongoDBOutput/m-p/2222204#M15893</link>
      <description>Hi 
&lt;BR /&gt;The data node and the query node have to be defined in the json tree, the data node defines the data will be updated or inserted, the query node defines the query condition. In the below example, the id element is defined under the query node, it will compare the input id value with existing ids in target database, if id already exists, then update the data, otherwise, insert a new data. 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/674/1_20141202-1307.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBhw.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151916iC224772F37DFE83C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBhw.png" alt="0683p000009MBhw.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/674/2_20141202-1308.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBi1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149911i8DFAB2C2CCEE52EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBi1.png" alt="0683p000009MBi1.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 02 Dec 2014 12:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-JSON-format-in-tMongoDBOutput/m-p/2222204#M15893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-02T12:09:12Z</dc:date>
    </item>
  </channel>
</rss>

