<?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 MongoDB - Possible to update documents using a where/set clause? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-Possible-to-update-documents-using-a-where-set-clause/m-p/2349540#M116512</link>
    <description>&lt;P&gt;I know in mongo I can use a set clause to update document fields based on their value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I need to update all documents in a collection where their date field is null and set their date field to the current date. If their date field is not null then they should not be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot figure out how to do this in Talend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:40:49 GMT</pubDate>
    <dc:creator>ml1662663516</dc:creator>
    <dc:date>2024-11-15T21:40:49Z</dc:date>
    <item>
      <title>MongoDB - Possible to update documents using a where/set clause?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-Possible-to-update-documents-using-a-where-set-clause/m-p/2349540#M116512</link>
      <description>&lt;P&gt;I know in mongo I can use a set clause to update document fields based on their value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I need to update all documents in a collection where their date field is null and set their date field to the current date. If their date field is not null then they should not be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot figure out how to do this in Talend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MongoDB-Possible-to-update-documents-using-a-where-set-clause/m-p/2349540#M116512</guid>
      <dc:creator>ml1662663516</dc:creator>
      <dc:date>2024-11-15T21:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: MongoDB - Possible to update documents using a where/set clause?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-Possible-to-update-documents-using-a-where-set-clause/m-p/2349541#M116513</link>
      <description>&lt;P&gt;Hello @Mark Lammert​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Unfortunately, it's impossible to update documents using where /set clause.&lt;/P&gt;&lt;P&gt;However, for your case, you can use tMap to setup a filter for the input rows and use tMongoDBOutput​ with Action on Data=Update to update the documents like the below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000huri5AAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155781i3C5F8C46D88C780A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000huri5AAA.png" alt="0695b00000huri5AAA.png" /&gt;&lt;/span&gt;Best regards&lt;/P&gt;&lt;P&gt;Aiming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 01:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MongoDB-Possible-to-update-documents-using-a-where-set-clause/m-p/2349541#M116513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-16T01:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: MongoDB - Possible to update documents using a where/set clause?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MongoDB-Possible-to-update-documents-using-a-where-set-clause/m-p/2349542#M116514</link>
      <description>&lt;P&gt;Thank you. Did not know you could do this. Thank you for sharing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Man, it would be awesome if you could write set and update JSON just like you can write find query JSON.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 13:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MongoDB-Possible-to-update-documents-using-a-where-set-clause/m-p/2349542#M116514</guid>
      <dc:creator>ml1662663516</dc:creator>
      <dc:date>2023-06-16T13:53:06Z</dc:date>
    </item>
  </channel>
</rss>

