Writes the contents of a FlowFile to MongoDB
mongodb, insert, update, write, put
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values.
Name | Default Value | Allowable Values | Description |
---|---|---|---|
Mongo URI | MongoURI, typically of the form: mongodb://host1[:port1][,host2[:port2],...] | ||
Mongo Database Name | The name of the database to use | ||
Mongo Collection Name | The name of the collection to use | ||
Mode | insert |
| Indicates whether the processor should insert or update content |
Upsert | false |
| When true, inserts a document if no document matches the update query criteria; this property is valid only when using update mode, otherwise it is ignored |
Update Query Key | _id | Key name used to build the update query criteria; this property is valid only when using update mode, otherwise it is ignored | |
Write Concern | ACKNOWLEDGED |
| The write concern to use |
Character Set | UTF-8 | The Character Set in which the data is encoded |
Name | Description |
---|---|
failure | All FlowFiles that cannot be written to MongoDB are routed to this relationship |
success | All FlowFiles that are written to MongoDB are routed to this relationship |