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.
+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.
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
andmongo+srv
, so the configuration schema probably needs ansrv
option which defaults to true.