MongoG Documentation
Learn MongoDB.
Build with confidence.
Start with documents and collections, progress through production-minded queries and data modeling, then master the official MongoDB driver and operational tools inside MongoG.
mongodb 7.5.0 driverRecommended learning path
From first document to confident operations.
Every lesson uses the isolated mongog_tutorial database, explains the expected result, and ends with practice work and official references.
- 01Build the foundation
Learn BSON, document modeling, CRUD filters, and safe write results.
- 02Shape reliable data
Add validation, indexes, aggregation, bulk workflows, and relationship queries.
- 03Work inside MongoG
Use real driver objects, automatic await, paged cursors, and document workspaces.
- 04Operate deliberately
Read explain plans, observe streams, inspect GridFS, and verify every mutation.
MongoDB Tutorial
Understand the database.
A practical path from your first document to validated models, efficient relationships, and multi-document transactions.
Getting Started with MongoDB
Learn MongoDB's document model, create a tutorial database, and run your first query with the official Node.js driver inside MongoG.
Read tutorial → 02Documents, Collections, and BSON
Understand MongoDB documents, collections, ObjectId values, dates, numeric types, arrays, nested objects, and the BSON format behind them.
Read tutorial → 03Data Modeling in MongoDB
Design MongoDB documents around application access patterns and choose between embedding related data and referencing separate collections.
Read tutorial → 04Insert Documents with MongoDB
Insert one or many MongoDB documents, inspect acknowledged write results, choose identifiers, and keep repeatable tutorial scripts safe.
Read tutorial → 05MongoDB Query Examples for Filters and Projection
Use practical MongoDB query examples for equality, comparison, arrays, nested fields, projection, sorting, limits, null values, and stable pagination.
Read tutorial → 06MongoDB updateMany and Delete Query Examples
Use MongoDB updateOne, updateMany, replace, upsert, find-and-modify, and delete examples with precise filters, result checks, and safer write practices.
Read tutorial → 07MongoDB Aggregation Pipeline Examples
Build MongoDB aggregation examples that filter, reshape, group, sort, unwind, facet, and validate data, then inspect the real cursor in MongoG.
Read tutorial → 08MongoDB Index Examples and Explain Plans
Create MongoDB indexes for real query examples, choose compound key order, read execution statistics, and verify access paths with explain plans.
Read tutorial → 09MongoDB Transactions with the Node.js Driver
Use sessions and transactions for atomic multi-document changes, handle failures, and understand when MongoDB's single-document atomicity is enough.
Read tutorial → 10Validate MongoDB Documents with JSON Schema
Add server-side MongoDB validation rules, test valid and invalid writes, and evolve an existing collection without losing schema flexibility.
Read tutorial → 11Run MongoDB Bulk Write Operations
Combine inserts, updates, replacements, and deletes with collection bulkWrite, inspect result counts, and handle ordered or unordered failures.
Read tutorial → 12MongoDB $lookup Examples for Relationships
Use practical MongoDB $lookup examples to join related collections, flatten arrays, filter joined data, inspect plans, and decide when embedding is better.
Read tutorial → 13Find MongoDB Documents That Contain a String
Query MongoDB string fields with exact values, regular expressions, case-insensitive matching, escaping, indexes, and safer alternatives for text search.
Read tutorial → 14Query a Date Range in MongoDB
Build correct MongoDB date-range queries with inclusive and exclusive boundaries, UTC values, ObjectId timestamps, indexes, aggregation, and verification.
Read tutorial → 15MongoDB Array Query Examples
Query arrays in MongoDB with exact matches, any-element conditions, $all, $elemMatch, array indexes, projection, and aggregation without ambiguous results.
Read tutorial → 16MongoDB Group By Examples with $group
Group MongoDB documents by fields, dates, and compound keys; calculate totals, averages, counts, and top values with correct aggregation pipeline ordering.
Read tutorial →MongoG Guide
Make the workspace yours.
Learn what MongoG adds around the real driver, from typed scripts and paged results to BSON-safe editing and administration.
Connect MongoG to MongoDB Atlas or a Local Server
Connect MongoG to MongoDB Atlas or a local server, select a default database, verify access, troubleshoot TLS, and keep credentials out of query scripts.
Read guide → 02Work with the MongoG Query Editor
Use typed completions, database context, selected-statement execution, result panels, query modes, cancellation, saved scripts, and history.
Read guide → 03MongoG Query Scripts and Automatic Await
Learn how MongoG waits for driver Promises across assignments, conditions, helpers, loops, errors, and explicit parallel work without changing your source.
Read guide → 04MongoG Script Globals, BSON, and Execution Modes
Use MongoG's real driver globals, database helpers, BSON constructors, console output, Query Mode restrictions, and Trusted Script Mode allowlist.
Read guide → 05MongoG Cursors, Results, and Cancellation
Understand paged cursor results, iteration, write and scalar output, change streams, transaction cleanup, cancellation, and runtime ownership in MongoG.
Read guide → 06Browse and Edit Documents in MongoG
Use MongoG’s collection workspace to filter, page, inspect, insert, replace, and delete BSON documents with concurrency and read-only safeguards.
Read guide → 07Use MongoG Administration Tools
Inspect indexes and explain plans, run bounded global searches, observe change streams, and manage GridFS files from MongoG’s administration workspace.
Read guide →Learn by doing
Run every example in MongoG.
Connect to a local deployment or MongoDB Atlas and work through the tutorials in a typed, focused query editor.