Write job results to a MongoDB collection via the sink service
The MongoDB Sink command (Command Type: 1204) sends the job result to the sink service, which writes it to a MongoDB collection.
Command Type
Command Type ID: 1204
Parameters
Parameter
Type
Description
Required
collection
string
The MongoDB collection where documents will be written
Yes
dataSegmentToSend
string
Which part of the data to send. Possible values: "fullData", "data". Defaults to "data"
Yes
documentId
string
Document _id. When set, the sink replaces the whole document with this _id (upsert); when omitted, MongoDB inserts a new document with a generated ObjectId
No
database
string
Target database. Leave empty to use the default database from your MongoDB sink configuration