MongoDB

MongoDB Practice

Master MongoDB from your first document to production - documents and BSON types, query filters and projections, updates, arrays, indexes, aggregation, transactions, replication and sharding, all tested against a real deployment. Choose Java, Node.js or Python.

java-25Java 25nodejs-24Node.js 24python-312Python 3.13
Module 1

Documents, BSON & CRUD Basics

Move records into a collection and keep their types intact: store documents one at a time and in bulk, hold money, timestamps and identifiers as the BSON types they need, and read every field back unchanged.

4

First Documents

easy0 / 1 solved

BSON Types and Precision

easyNo attempts yet

Ordered & Unordered Bulk Inserts

easyNo attempts yet

Product Catalogue Loader

easyNo attempts yet

About this path

This path starts with documents, BSON types and inserts, the ground every MongoDB query builds on. You work through a MongoDB driver in Java, Node.js or Python, so you should be able to write a small program in one of them. No earlier MongoDB experience is needed. The first module ends with a product catalogue loader that stores prices, dates and ids without losing precision.

From the blog

2
Every Mongoose query, one pageA bookmarkable Mongoose cheatsheet — finding, filtering, projection and sorting, pagination, updates, populate, and lean() for performance.How to design a MongoDB schemaA reference for modelling decisions in MongoDB — embed vs reference, designing around queries, indexing, patterns, and the anti-patterns to avoid.

Frequently asked questions

4

What will I practice in this path?

1 module: Documents, BSON & CRUD Basics.

How many challenges are there, and how hard are they?

4 challenges, all easy.

What does this path run on?

You can work in Java 25, Node.js 24 or Python 3.13.

Do I need to install anything?

No. Every challenge runs in a browser-based IDE with everything already set up, and your code is graded automatically against a test suite.

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.