Overview of MongoDB

Let’s have a brief introduction to using MongoDB as a repository.

The previous chapter discussed how to integrate a real external system with the core of clean architecture. Unfortunately, we also had to introduce a lot of code to manage the integration tests and move forward to a proper setup.

In this chapter, we’ll employ what we’ve learned so far to show only the part of the code that’s connected with the external system. Swapping the database from PostgreSQL to MongoDB is the perfect way to show how flexible clean architecture is and how easy it is to introduce different approaches like a non-relational database instead of a relational one.

Get hands-on with 1400+ tech skills courses.