You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mike Thomsen (JIRA)" <ji...@apache.org> on 2017/11/09 13:50:00 UTC
[jira] [Created] (NIFI-4588) Add ability to use update operators
like $set and $push in PutMongo
Mike Thomsen created NIFI-4588:
----------------------------------
Summary: 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
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:
{
"$set": {
"strField": "Message",
"dateField": {
"$date": 1510235376611
}
},
"$push": {
"arrayField": {
"field": "Something here"
}
}
}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)