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.

NameDefault ValueAllowable ValuesDescription
Mongo URIMongoURI, typically of the form: mongodb://host1[:port1][,host2[:port2],...]
Mongo Database NameThe name of the database to use
Mongo Collection NameThe name of the collection to use
Modeinsert
  • insert
  • update
Indicates whether the processor should insert or update content
Upsertfalse
  • 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_idKey name used to build the update query criteria; this property is valid only when using update mode, otherwise it is ignored
Write ConcernACKNOWLEDGED
  • ACKNOWLEDGED
  • UNACKNOWLEDGED
  • FSYNCED
  • JOURNALED
  • REPLICA_ACKNOWLEDGED
  • MAJORITY
The write concern to use
Character SetUTF-8The Character Set in which the data is encoded

Relationships:

NameDescription
failureAll FlowFiles that cannot be written to MongoDB are routed to this relationship
successAll FlowFiles that are written to MongoDB are routed to this relationship

Reads Attributes:

None specified.

Writes Attributes:

None specified.