This article is based on a public repository I created. You can check the full project and follow here: MongoIntegrationAPI Ever since I started using C# and writing my first lines of code, I was trained to apply the Clean Architecture pattern. Following DDD principles, I focused on the Domain layer, keeping it separated from Infrastructure and completely unaware that entities could represent a database table. When I got my first MongoDB project, I had several problems. The MongoDB driver expects some specific methods to search and insert data, instances are built differently, and all of this made my first experience a traumatic one. It turns out that stepping outside my comfort zone gives me motivation and energy to study and understand things. I started building Proofs of Concept (POCs), trying the connection between C# .NET and MongoDB in different scenarios.…