[ 
https://issues.apache.org/jira/browse/NIFI-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16612549#comment-16612549
 ] 

ASF GitHub Bot commented on NIFI-5589:
--------------------------------------

Github user josephxsxn commented on the issue:

    https://github.com/apache/nifi/pull/2999
  
    Thanks for submitting this documentation change. Can you please squash all 
3 of your commits into 1?
    
    
https://github.com/todotxt/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit
 


> Clarify putMongo documentation
> ------------------------------
>
>                 Key: NIFI-5589
>                 URL: https://issues.apache.org/jira/browse/NIFI-5589
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Joseph Niemiec
>            Assignee: Vijeta Hingorani
>            Priority: Minor
>
> Today the putMongoDB documentation is very vugae and leads to alot of playing 
> around to understand exactly how it works. We would improve the documentation 
> so that others can immediately start to use this processor successfully. 
>  
> My largest issues where around understanding how the UpdateQuery works, and 
> the expected content + operators that can be used when performing the update 
> with operators and not just replacing the entire document. 
>  
>  
> Here is a misc note I made on my experience doing this.
> With the putMongo processor the updateQuery is like a find() in the mongo 
> CLI, all documents that match the find will be replaced with the flowfile 
> content. The update mode has 2 choices; whole document or with operators. If 
> your updating the entire document it expects the json to be properly 
> formated. The UpdateQuery will return to this processor the documents which 
> need to be completely replaced with the incoming FlowFile content.  If your 
> using this with operators its expected that the FlowFile content ONLY be the 
> operator part you need is {$set: {"f1": "val1"} , $inc :{ "count" : 10}}, it 
> doesnt not support the find() portion that you would expect in the CLI, that 
> part is the 'UpdateQuery'



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to