[ https://issues.apache.org/jira/browse/NIFI-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan Morris updated NIFI-2135: --------------------------------- Attachment: nifi-mongodb-nar-0.7.0.nar 0002-Verified-insert-update-and-replace.-Fixed-a-minor-lo.patch Should have double checked before commenting.. Second patch attached. > PutMongo replacing document instead of updating document > -------------------------------------------------------- > > Key: NIFI-2135 > URL: https://issues.apache.org/jira/browse/NIFI-2135 > Project: Apache NiFi > Issue Type: Bug > Affects Versions: 0.6.1 > Reporter: Bryan Bende > Priority: Minor > Attachments: > 0001-NIFI-2135-PutMongo-will-now-update-using-a-set-and-r.patch, > 0002-Verified-insert-update-and-replace.-Fixed-a-minor-lo.patch, > nifi-mongodb-nar-0.7.0.nar > > > How can I use put mongo processor to add a new key value pair to an existing > document? The flow file contains the document object Id. I have set 'mode' > property to 'update' and 'upsert' property to false and 'update query key' > property to '_id'. Flow file content is something like this. > { > _id:ObjectId(577216f0154b943fe8068079) > expired:true > } > Without inserting the 'expired:true', it replaces the whole document with the > given one. So is there a way to insert the new key value pair to collection > without replacing the whole collection in MongoDB using putmongo processor? -- This message was sent by Atlassian JIRA (v6.3.4#6332)