[
https://issues.apache.org/jira/browse/NIFI-4588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16319964#comment-16319964
]
ASF GitHub Bot commented on NIFI-4588:
--------------------------------------
Github user dyunggertrude commented on the issue:
https://github.com/apache/nifi/pull/2259
Hi,
I need some help
I try to use putMongo 1.5.0 with the ability to not replacing the whole
collection (option With operators enabled in Update Mode)

the flow file is like this :
{ "$set": {
"type":"Cc",
"nmess":14488,
"idgtr":"C-00000-0000-00088-0000-00000-CMF-RMF",
"last_update":"2018-01-10T09:32:35",
"libelle":"Bonifacio_Estefan. " }
}
When i launch nifi process, attributes not listed in my flow are deleted
!!!
What's wrong in my configuration
> 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)