This documentation starts with the common application path: connect to MongoDB, run collection operations, add Model validation when needed, then enable cache, transactions, pools, sync, and operations features deliberately.
| Goal | Start here | Notes |
|---|---|---|
| Install, connect, and run the first query | getting-started.md |
Installation and minimal connection validation |
| Learn basic usage for common collection operations | basic-operations.md |
Daily CRUD, pagination, cache TTL, and Model entry-point guidance |
Configure new MonSQLize(options) |
configuration.md |
Complete constructor options, defaults, cache, Redis, Model, sync, pools, and logging |
| Match docs to runnable source | examples.md |
Links each topic to a GitHub example source |
| Add database caching | cache.md |
Collection query cache, Redis L2 cache, and distributed invalidation |
| Control collection-vs-Model writes | write-path-policy.md |
Optional guard when selected namespaces must go through Model writes |
| Prepare production rollout | production-rollout.md |
Data task rollout, Change Stream CDC, index preflight, and traffic-switch checks |
| Migrate production data by scenario | production-data-migration.md |
Filtered data, indexes, field edits, and restore from instance A to production |
| Look up data task parameters | data-tasks.md |
One Job configuration, four methods, every parameter, and CLI commands |
| Follow scenario guides | recipes.md |
Guides for connection, cache, Redis, SSH, pools, and Model usage |
| Browse the full API surface | api-index.md |
Reference entry for lower-level and compatibility APIs |
| Check runtime boundaries | capability-index.md |
Capability map with links to deeper reference pages |
- Package entry: repository README
- Installation:
getting-started.md - Basic usage:
basic-operations.md - Constructor configuration:
configuration.md - Examples:
- Cache guide:
cache.md - Write path policy:
write-path-policy.md - Production rollout:
production-rollout.md - Production data migration:
production-data-migration.md - Data tasks API:
data-tasks.md - Scenario guides:
recipes.md - API and runtime reference:
- The website is generated from
docs/enanddocs/zh. - Runnable examples live in
examples. - Public package behavior should match the package root exports, public types, and runnable examples.
Run these commands from the repository root:
npm run build
npm run test:examplesnpm run test:examples starts temporary MongoDB test servers through the repository example runner, compiles the TypeScript examples, runs them, and cleans up the temporary data directories.