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

ASF subversion and git services commented on NIFI-4588:
-------------------------------------------------------

Commit fe3f288944eb02243ec446af17d23527f05a080d in nifi's branch 
refs/heads/master from [~mike.thomsen]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=fe3f288 ]

NIFI-4588 Added the ability to use update operators like $push and $set to 
PutMongo.

Removed commented out code

Signed-off-by: Matthew Burgess <[email protected]>

This closes #2259


> Add ability to use update operators like $set and $push in PutMongo
> -------------------------------------------------------------------
>
>                 Key: NIFI-4588
>                 URL: https://issues.apache.org/jira/browse/NIFI-4588
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Mike Thomsen
>            Assignee: Mike Thomsen
>             Fix For: 1.5.0
>
>
> The current implementation of PutMongo just puts an entire document in with 
> an update. There are situations where this will definitely not work like when 
> a user needs to just update one field or push an element to array in an 
> existing document.
> The update should provide a configurable ability to push either an entire 
> JSON document (using extended JSON, as that is required by MongoDB) or use an 
> update document like this:
> {code:java}
> {
>     "$set": {
>         "strField": "Message",
>         "dateField": {
>              "$date": 1510235376611
>          }
>     },
>     "$push": {
>         "arrayField": {
>             "field": "Something here"
>         }
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to