OpenFn / adaptors

The new home for OpenFn adaptors; re-usable connectors for the most common DPGs and DPI building blocks.
GNU General Public License v3.0
4 stars 8 forks source link

mongo: support databases not hosted on mongodb Atlas #356

Open josephjclark opened 10 months ago

josephjclark commented 10 months ago

At the moment our mongo adaptor hard-codes the mongo+srv:// protocol in to the connection string. This is designed for hosted mongo databases (or any database hosted with SRV).

This is fine but the configuration schema should allow this to be customised.

I think the only valid protocols for mongo are mongo and mongo+srv, so the configuration schema probably needs an srv option which defaults to true.

bensonmiller commented 10 months ago

+1 Although this isn't currently important to me, as I'm using Atlas, it's an important change to support the wide variety of hosting options that are available for MongoDB.