Migrating a Relational Schema to MongoDB
Move a MySQL or PostgreSQL schema to MongoDB: map tables to collections, embed or reference each relationship, and turn constraints into validation rules.
Every post tagged mongodb on the DbSchema blog.
Move a MySQL or PostgreSQL schema to MongoDB: map tables to collections, embed or reference each relationship, and turn constraints into validation rules.
Learn how to create virtual foreign keys in MongoDB using DbSchema to visualize relationships and browse related collection data.
MongoDB for beginners: the NoSQL document model, collections and BSON, replica sets and sharding, the SQL to MongoDB mapping, and where the document model fits.
Learn MongoDB $lookup with simple joins, pipeline lookups, $unwind, indexing, and performance tips. Build and inspect joins visually in DbSchema.
Link MongoDB collections with virtual relations in DbSchema and browse related documents side by side, without writing an aggregation pipeline.
Connect DbSchema to an undocumented MongoDB database and reverse-engineer a diagram of what the documents contain, sampled and inferred, not enforced.
Learn MongoDB CRUD operations with mongosh and DbSchema examples: insert, find, update, delete, bulk writes, projections, sorting, and filters.
Visualize a MongoDB database as a diagram in DbSchema: reverse-engineer collections, draw virtual relations, edit validation rules, export HTML5 documentation.
Compare the best MongoDB tools for 2026, including GUI clients, schema design, query builders, pricing, and team workflows for real projects.
Create a MongoDB database with use and a first insert in mongosh, or through Atlas, Compass, Docker and DbSchema. Why an empty database does not persist.
Learn what an index is in MongoDB, why it matters, and how to use it. This beginner tutorial explains single-field, compound, and text indexes with examples in MongoDB shell and DbSchema.
Learn how to visualize MongoDB relationships with embedding, references, one-to-many patterns, and DbSchema diagrams. Decide when to embed vs reference.
Learn how to create diagrams for MongoDB, implement validation rules and visually manage MongoDB databases.
Understand MongoDB aggregation pipelines with clear examples. Learn how to filter, group, sort, and transform data step by step in this beginner-friendly guide.
Learn the best MongoDB schema design practices for 2026, common mistakes to avoid, and how DbSchema helps visualize, document, and optimize your collections.
How MongoDB validation rules work: a $jsonSchema validator in mongosh, the validationLevel and validationAction settings, and the same rule designed in DbSchema.
What an embedded document and an array field are in MongoDB, with minimal examples, dot-notation queries, $elemMatch, and multikey indexes on array fields.
Learn how to connect MongoDB Atlas to DbSchema and visualize collections as diagrams with practical setup steps.
Learn how to model collections, explore virtual relations, and generate MongoDB validation rules from a visual design to enforce data structure.
Learn how to design an efficient MongoDB user collection. Explore embedding versus referencing, schema validation, and visual data modeling for developers.