Expand description
Read and write data into mongodb database.
§Configuration
key | alias | Description | Default Value | Possible Values |
---|---|---|---|---|
type | - | Required in order to use this connector | mongodb | mongodb / mongo |
endpoint | - | Endpoint of the connector | null | String |
database | db | The database name | null | String |
collection | col | The collection name | null | String |
query | - | Query to find an element into the collection | null | Object |
find_options | projection | Specifies the fields to return in the documents that match the query filter. To return all fields in the matching documents, omit this parameter. For details, see Projection | null | Object |
update_options | - | Options apply during the update) | null | Object |
paginator | - | Paginator parameters. | crate::connector::paginator::mongodb::offset::Offset | crate::connector::paginator::mongodb::offset::Offset / crate::connector::paginator::mongodb::cursor::Cursor |
counter | count | Use to find the total of elements in the resource. used for the paginator | [crate::connector::counter::psql::metadata::Metadata ] | [crate::connector::counter::psql::metadata::Metadata ] |
§Examples
[
{
"type": "w",
"connector":{
"type": "mongodb",
"endpoint": "mongodb://admin:admin@localhost:27017",
"db": "tests",
"collection": "test",
"update_options": {
"upsert": true
}
},
"concurrency_limit":3
}
]