Other Ways In

Other Ways In: Mongoose: What It Adds and What It Hides, The Same Work from C#, Azure Cosmos DB's MongoDB API, Briefly.

Updated

  1. Mongoose: What It Adds and What It Hides (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# (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 (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.