<?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>question Re: How to write mongoDb query in Apache Nifi GetMongo Processor ? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-write-mongoDb-query-in-Apache-Nifi-GetMongo-Processor/m-p/190424#M152513</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/57161/vivekb3ds.html" nodeid="57161"&gt;@Vivek Singh&lt;/A&gt; The query in GetMongo Processor should be in Extended JSON format. The format you are mentioning is the Mongo Shell format and not compatible with the processors. Switch your query to look something like below.&lt;/P&gt;&lt;PRE&gt;{
"createdAt":{$ne:null},
"updatedAt" : {$ne:null}
}&lt;/PRE&gt;</description>
    <pubDate>Thu, 22 Mar 2018 00:22:28 GMT</pubDate>
    <dc:creator>RahulSoni</dc:creator>
    <dc:date>2018-03-22T00:22:28Z</dc:date>
    <item>
      <title>How to write mongoDb query in Apache Nifi GetMongo Processor ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-write-mongoDb-query-in-Apache-Nifi-GetMongo-Processor/m-p/190423#M152512</link>
      <description>&lt;P&gt;I am trying to fetch some data from mongodb using Nifi and I am using &lt;STRONG&gt;GetMongo &lt;/STRONG&gt;processor. I am trying to write a query inside GetMongo but I dont have any idea how t write query inside this processor.&lt;BR /&gt;This is my sample query&lt;/P&gt;&lt;PRE&gt;db.Person.find({
$and:[
{"createdAt":{$ne:null}},
{"updatedAt":{$ne:null}}
]
})&lt;/PRE&gt;&lt;P&gt;when I write this query it shows the exclamation marks over the processor showing that &lt;STRONG&gt;"Query validated against .... is invalid because JSON was expecting a value but find db."&lt;/STRONG&gt; Help me with the correct expression variables at least a good sample will be helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:16:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-write-mongoDb-query-in-Apache-Nifi-GetMongo-Processor/m-p/190423#M152512</guid>
      <dc:creator>vivek_b3ds</dc:creator>
      <dc:date>2018-03-21T17:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to write mongoDb query in Apache Nifi GetMongo Processor ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-write-mongoDb-query-in-Apache-Nifi-GetMongo-Processor/m-p/190424#M152513</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/57161/vivekb3ds.html" nodeid="57161"&gt;@Vivek Singh&lt;/A&gt; The query in GetMongo Processor should be in Extended JSON format. The format you are mentioning is the Mongo Shell format and not compatible with the processors. Switch your query to look something like below.&lt;/P&gt;&lt;PRE&gt;{
"createdAt":{$ne:null},
"updatedAt" : {$ne:null}
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Mar 2018 00:22:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-write-mongoDb-query-in-Apache-Nifi-GetMongo-Processor/m-p/190424#M152513</guid>
      <dc:creator>RahulSoni</dc:creator>
      <dc:date>2018-03-22T00:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to write mongoDb query in Apache Nifi GetMongo Processor ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-write-mongoDb-query-in-Apache-Nifi-GetMongo-Processor/m-p/190425#M152514</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/57161/vivekb3ds.html" nodeid="57161"&gt;@Vivek Singh&lt;/A&gt; did the suggestion worked for you?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 02:41:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-write-mongoDb-query-in-Apache-Nifi-GetMongo-Processor/m-p/190425#M152514</guid>
      <dc:creator>RahulSoni</dc:creator>
      <dc:date>2018-03-23T02:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to write mongoDb query in Apache Nifi GetMongo Processor ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-write-mongoDb-query-in-Apache-Nifi-GetMongo-Processor/m-p/190426#M152515</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/66220/rsoni.html" nodeid="66220"&gt;@Rahul Soni&lt;/A&gt; Yes Mr. Soni thanks its working. Thanks for your time.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 08:29:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-write-mongoDb-query-in-Apache-Nifi-GetMongo-Processor/m-p/190426#M152515</guid>
      <dc:creator>vivek_b3ds</dc:creator>
      <dc:date>2018-03-23T08:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to write mongoDb query in Apache Nifi GetMongo Processor ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-write-mongoDb-query-in-Apache-Nifi-GetMongo-Processor/m-p/365832#M239414</link>
      <description>&lt;P&gt;any way to use query for filter only last minutes transactions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 10:01:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-write-mongoDb-query-in-Apache-Nifi-GetMongo-Processor/m-p/365832#M239414</guid>
      <dc:creator>moahmedhassaan</dc:creator>
      <dc:date>2023-03-10T10:01:15Z</dc:date>
    </item>
  </channel>
</rss>

