Ryan Hendrickson created NIFI-5506:
--------------------------------------

             Summary: Enable use of MongoDB Operators as a NiFI Property 
                 Key: NIFI-5506
                 URL: https://issues.apache.org/jira/browse/NIFI-5506
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 1.7.1, 1.7.0, 1.6.0
            Reporter: Ryan Hendrickson


Currently, the PutMongo processor allows the use of MongoDB Operators, when the 
query is passed in as a FlowFile to the processor.  Additionally, you can also 
put an update query into the Property Field, however, it doesn't allow MongoDB 
Operators. 

This ticket is to express that a more flexible solution is needed, such that, 
you can update singular fields in a Mongo Document using the PutMongo processor 
in-line with a normal flow, vs having to create a file for it, making use of 
Mongo Operators and NiFi Expression Language.

 
An example solution, could look like: A drop-down combo box in the UI that asks 
which Mongo Operator you'd like to use: $set, $unset, etc., then a text field 
supporting Expression Language for the JSON values.
 
Example of: \{"id":"${id}", $set: \{"field1":"anything"}, would be expressed in 
the UI as:
 
  Mode: update
  Update Query: \{"id":"${id}"}
  Mongo Operator: $set  (from DropDown)
  Operator Update Values: \{"field1":"anything"}
  Update Mode: With operators enabled



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

Reply via email to