MongoDB Destination Plugin
Latest: v1.0.4This destination plugin lets you sync data from any CloudQuery source to a MongoDB database.
Supported database versions:
- MongoDB >= 3.6 (The same minimum version supported by the official Go driver)
Configuration
Example
This example configures a MongoDB destination, located at localhost:27017
. The (top level) spec section is described in the Destination Spec Reference.
kind: destination
spec:
name: "mongodb"
registry: "github"
path: "cloudquery/mongodb"
version: "v1.0.4"
spec:
connection_string: "mongodb://localhost:27017"
database: "your_mongo_database_name"
Make sure to use environment variable substitution in production instead of committing the credentials to the configuration file directly.
MongoDB Spec
This is the (nested) spec used by the MongoDB destination Plugin.
-
connection_string
(string, required)MongoDB URI as described in the official MongoDB documentation
-
database
(string, required)Required database to sync the data to