To install MongoDB on Windows you need two downloads, the server and the shell. This post walks through the MongoDB 9 setup, then proves the install with real mongosh output: the version, a ping, one inserted document and a clean drop. It ends with the common first-run problems and the safe defaults to keep.
SQL to MongoDB: Mapping SELECT, WHERE, GROUP BY and JOIN
Moving from SQL to MongoDB is mostly a change of vocabulary plus a new way to join. This post maps SELECT, WHERE, ORDER BY, GROUP BY and JOIN to find, sort, $group and $lookup, and tests each one on a small vegetarian shop.
MongoDB deleteMany: The Empty Filter That Deletes Everything
MongoDB deleteMany removes every document that matches a filter, and an empty filter matches all of them. This post tests deleteOne, deleteMany, findOneAndDelete and the two quiet traps: a misspelled field and a filter built from an unset variable.
MongoDB updateOne: $set, $inc and Upserts Without Surprises
MongoDB updateOne changes one document, and its result object shows how many documents matched and how many changed. This post tests $set, $inc, updateMany, upserts and the replaceOne mistake that wipes every other field.
MongoDB find: Filters, Projections and Sorting for SQL People
MongoDB find returns the documents that match a filter. This post tests find, findOne, $gt, $in, $and, $or, projection, sort, limit and countDocuments on 18 grocery products, each next to its SQL equivalent.
MongoDB insertOne and insertMany: Adding Documents the Right Way
MongoDB insertOne adds a document and insertMany adds a list. This post tests both with a unique index, a generated _id and a duplicate key in the middle of a batch, comparing ordered: true with ordered: false and showing what landed.
Getting Started With mongosh: Databases, Collections and Documents
mongosh is the shell that connects you to MongoDB. This post connects, creates a database and a collection on the first write, and stores a document. It explains the _id, the BSON types and the habits that surprise SQL Server people.







