Command Type
Command Type ID: 1204Parameters
Usage Examples
Insert into MongoDB
Upsert (Replace) by Match Key
Related Commands
- Kafka Sink - Publish to Kafka
- S3 Sink - Upload to S3
- RabbitMQ Sink - Publish to RabbitMQ
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Write job results to a MongoDB collection via the sink service
| 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 |
| operation | string | Whether to always insert a new document or replace a matched document | Yes |
{
"command": "mongodb-sink",
"params": {
"collection": "events",
"dataSegmentToSend": "data",
"operation": "insert"
}
}
{
"command": "mongodb-sink",
"params": {
"collection": "live_odds",
"dataSegmentToSend": "data",
"operation": "upsert"
}
}