# Mongoose, C# and Cosmos DB

The driver isn't the only way in. See what Mongoose adds and what it hides, do the same work from C# with the official .NET driver, and learn what changes when the database is Azure Cosmos DB's MongoDB API. Then look back at the course and ahead to the final capstone.

Updated: November 19, 2026

## [Other Ways In](https://www.ask-codey.com/courses/mongodb-in-depth/topics/mongodb-other-ways-in)

1. [Mongoose: What It Adds and What It Hides](https://www.ask-codey.com/lessons/mongodb-mongoose-what-it-adds) (Journeyman): Mongoose is a Node.js library on top of the MongoDB driver that adds schemas, models, checks before every save, defaults and populate, and it also changes your data and runs queries without saying so, so this lesson shows both sides.
2. [The Same Work from C#](https://www.ask-codey.com/lessons/mongodb-the-same-work-from-csharp) (Journeyman): The official C# driver, MongoDB.Driver from NuGet, does in a .NET 10 program what you've done in mongosh and Node, with a Pet class mapped to documents, filters from a builder or LINQ, and awaited calls such as InsertOneAsync.
3. [Azure Cosmos DB's MongoDB API, Briefly](https://www.ask-codey.com/lessons/mongodb-azure-cosmos-db-mongodb-api) (Journeyman): Azure has two services your MongoDB code can talk to, Azure Cosmos DB for MongoDB, billed in request units, and Azure DocumentDB, billed by its servers, and moving to either is often a new connection string plus a careful check of what each one doesn't support.

## [Exercise: Adoption Applications with Mongoose](https://www.ask-codey.com/courses/mongodb-in-depth/topics/mongodb-exercise-adoption-applications)

1. [Exercise: Adoption Applications with Mongoose](https://www.ask-codey.com/lessons/exercise-mongodb-adoption-applications-with-mongoose) (Journeyman): Write a Mongoose schema and model for the Maple Street Pet Adoption Center's adoption applications, with required fields, an allowed list of statuses and a reference to the pet, then the three data-layer functions its API calls, and let the tests check each one.

## [Where to Go Next](https://www.ask-codey.com/courses/mongodb-in-depth/topics/mongodb-where-to-go-next)

1. [Where to Go Next](https://www.ask-codey.com/lessons/mongodb-whats-next-after-this-course) (Journeyman): Look back at what you can do after MongoDB in Depth, from your first document to the data layer of a real API, and choose a next step, from building the server in Node.js in Depth to replica sets, sharding and Atlas's own features.

Source: https://www.ask-codey.com/courses/mongodb-in-depth/chapters/mongoose-csharp-and-cosmos-db
