We carry Mongodb version 3.4.10 in our installer and installer will install mongodb. We are not modifying the source code we are using it "AS-IS". We do not link the mongo db. We have Architectural separation from our commercial product. we use the libraries/drivers provided by mongodb to connect to the database. their drivers are Apache license v 2.0. We are providing our product via SaaS, do we have to give out the source code if we provide via SaaS(Software as a Service)?
The latest versions of MongoDB is licensed under the Server Side Public License. The drivers continue to be licensed under the Apache license. Mongo maintains an FAQ page that I believe answers your question (https://www.mongodb.com/licensing/server-side-public-license/faq). Their position is "The copyleft condition of Section 13 of the SSPL applies only when you are offering the functionality of MongoDB, or modified versions of MongoDB, to third parties as a service. There is no copyleft condition for other SaaS applications that use MongoDB as a database."
They have a similar position for code under the AGPL versions (see blog post here: https://www.mongodb.com/blog/post/the-agpl). "To say this another way: if you modify the core database source code, the goal is that you have to contribute those modifications back to the community. Note however that it is NOT required that applications using mongo be published.... This is why Mongo DB drivers are all licensed under an Apache license."