MongoDB
Extract data from a MongoDB instance
Setup
The following credentials keys are accepted:
host(required) -> The hostname / ip of the instanceuser(required) -> The username to access the instancepassword(optional) -> The password to access the instanceport(optional) -> The port of the instance. Default is27017.tls(optional) -> whether to use TLS for connecting (true/false).cert_file(optional) -> the client certificate to use to access the instance via TLS (file path or raw)cert_key_file(optional) -> the client key to use to access the instance via TLS (file path or raw)cert_ca_file(optional) -> the client CA certificate to use to access the instance via TLS (file path or raw)
Using sling conns
Here are examples of setting a connection named MONGODB. We must provide the type=mongodb property:
$ sling conns set MONGODB type=mongodb host=<host> user=<user> password=<password> port=<port> Environment Variable
See here to learn more about the .env.sling file.
Sling Env File YAML
See here to learn more about the sling env.yaml file.
Examples
If you are facing issues connecting, please reach out to us at support@slingdata.io, on discord or open a Github Issue here.
Last updated
Was this helpful?