MongoDB Knowledge Base

Follow along with one of our tutorials.

Looking for something specific? Search below.

How to Join Collections using Mongoose
How to Setup a NodeJS App with MongoDB using Mongoose
How to Setup a NodeJS App with MongoDB using MongoJS
The Mongoose Cheat Sheet
The MongoJS Cheat Sheet
When to use MongoJS vs Mongoose
MongoDB Basic Command Line Cheat Sheet
How to Pass Arguments from Mongo Command Line to Javascript
How to Execute Mongo Shell Commands through a Javascript File
How to Search for Text with Regex using the MongoDB Shell
How to Change a Field Name using the MongoDB Shell
How to Update a Document using the Mongo Shell
How to Sort Collection by Order Inserted using the MongoDB Shell
How to Customize your MongoDB Shell Prompt
How to Set Pretty Print as Default in the MongoDB Shell
How to Change the Mongo Default Database from "test"

Pilot the ObjectRocket Platform Free!

Try Fully-Managed CockroachDB, Elasticsearch, MongoDB, PostgreSQL (Beta) or Redis.

Get Started

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.