Description:
Writes the contents of a FlowFile to MongoDB
Tags:
mongodb, insert, update, write, put
Properties:
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 |
* insert * update |
Indicates whether the processor should insert or update content |
Upsert | false |
* true * 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 |
*ACKNOWLEDGED *UNACKNOWLEDGED *FSYNCED *JOURNALED *REPLICA_ACKNOWLEDGED *MAJORITY |
The write concern to use |
Character Set | UTF-8 | The Character Set in which the data is encoded |
Relationships:
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 |
Reads Attributes:
None specified.
Writes Attributes:
None specified.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page