MongoDB Sink
Send data to MongoDB.
This Kamelet expects a JSON-formatted body.
In the header, you can set the db-upsert / ce-dbupsert property, a boolean value that specifies whether the database should create an element if it does not exist.
Metadata
| Property |
Value |
| Type |
sink |
| Group |
MongoDB |
| Namespace |
Nosql |
| Support Level |
Stable |
| Provider |
Apache Software Foundation |
Properties
| Name |
Type |
Required |
Default |
Description |
hosts |
string |
✓ |
|
A comma-separated list of MongoDB host addresses in host:port format. |
collection |
string |
✓ |
|
The name of the MongoDB collection to bind to this endpoint. |
password |
string |
|
|
A user password for accessing MongoDB. |
username |
string |
|
|
A username for accessing MongoDB. |
ssl |
boolean |
|
true |
whether to enable ssl connection to mongodb |
sslValidationEnabled |
boolean |
|
true |
IMPORTANT this should be disabled only in test environment since can pose security issues. |
database |
string |
✓ |
|
The name of the MongoDB database. |
writeConcern |
string |
|
|
The level of acknowledgment requested from MongoDB for write operations. |
createCollection |
boolean |
|
false |
Create a collection during initialization if it doesn't exist. |
Dependencies
camel:core
camel:kamelet
camel:mongodb
camel:jackson