Command Type
Command Type ID: 1204Parameters
| 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 |
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