# MongoDB vocabulary

110 MongoDB terms, from Novice to Master. Start with the basics or jump to a level.

Updated: November 19, 2026

## Novice

- [\_id and ObjectId](https://www.ask-codey.com/glossary/id-and-objectid): Every document's unique \_id, by default an auto-generated ObjectId.
- [BSON](https://www.ask-codey.com/glossary/bson): MongoDB's binary form of JSON with extra types like dates.
- [Collection in MongoDB](https://www.ask-codey.com/glossary/collection-in-mongodb): A group of documents, created on first insert.
- [Document in MongoDB](https://www.ask-codey.com/glossary/document-in-mongodb): A JSON-like record in MongoDB with a unique \_id.
- [Field](https://www.ask-codey.com/glossary/field-mongodb): One named detail of a document, written as its name, a colon and its value, such as minutes: 25.
- [MongoDB](https://www.ask-codey.com/glossary/mongodb): The most popular document database.
- [MongoDB Atlas](https://www.ask-codey.com/glossary/mongodb-atlas): MongoDB's managed cloud service, with a free tier.
- [MongoDB Compass](https://www.ask-codey.com/glossary/mongodb-compass): MongoDB's desktop app for browsing and querying data.
- [mongosh](https://www.ask-codey.com/glossary/mongosh): The MongoDB command-line shell.

## Apprentice

- [$addToSet](https://www.ask-codey.com/glossary/addtoset): An update operator that adds an item to an array only when the array doesn't hold it yet, such as a favorite tapped twice.
- [$all](https://www.ask-codey.com/glossary/all-mongodb): A filter operator that matches an array holding every value in a list, in any order, with other items allowed.
- [$count](https://www.ask-codey.com/glossary/count-mongodb): An aggregation stage that counts the documents reaching it and hands on one document holding that number, in a field you name, such as { orders: 197 }.
- [$exists](https://www.ask-codey.com/glossary/exists): A filter operator that matches by whether a field is in the document at all, whatever it holds, null included.
- [$in](https://www.ask-codey.com/glossary/in): A filter operator that matches a field equal to any value in a list, such as a cuisine that is Thai, Japanese or Korean.
- [$inc](https://www.ask-codey.com/glossary/inc): An update operator that adds a number to a field inside the database, or subtracts with a negative one, so no count is lost; a missing field counts as 0.
- [$push and $pull](https://www.ask-codey.com/glossary/push-and-pull): Update operators for an array: $push adds an item to the end, even one already there, and $pull removes every item equal to a value.
- [$size](https://www.ask-codey.com/glossary/size): A filter operator that matches an array with exactly the given number of items.
- [$unset](https://www.ask-codey.com/glossary/unset-mongodb): An update operator that takes a field out of a document altogether, such as a featured flag when the month is over.
- [Array Field](https://www.ask-codey.com/glossary/array-field): A field holding a list, queried and updated with array operators.
- [Cluster](https://www.ask-codey.com/glossary/cluster-mongodb): Atlas's word for a MongoDB it runs for you in the cloud: a small group of servers that keep your data, with copies, and answer your queries.
- [Comparison Operators](https://www.ask-codey.com/glossary/comparison-operators-mongodb): $gt, $gte, $lt, $lte, $ne, $in and $nin: filter operators that compare a field with a value or a list, such as minutes under 30.
- [Connection String](https://www.ask-codey.com/glossary/connection-string-mongodb): The one-line address of a MongoDB, such as mongodb://localhost:27017 on your own computer, or a mongodb+srv address with a user name and password for Atlas.
- [countDocuments](https://www.ask-codey.com/glossary/countdocuments): Counts the documents that match a filter, without sending them, such as the total beside one page of results.
- [Cursor](https://www.ask-codey.com/glossary/cursor-mongodb): What find gives back: a pointer into the matching documents that hands them over a batch at a time; mongosh shows 20, and typing it shows more.
- [Database in MongoDB](https://www.ask-codey.com/glossary/database-in-mongodb): A named group of collections.
- [Database User](https://www.ask-codey.com/glossary/database-user): A name and password a program signs in to a database with, separate from the account you use on the database's website.
- [deleteOne and deleteMany](https://www.ask-codey.com/glossary/deleteone-and-deletemany): Remove one or all matching documents.
- [Document Reference](https://www.ask-codey.com/glossary/document-reference): A field that holds another document's \_id to link the two, such as customerId in an order pointing at its customer.
- [Dot Notation](https://www.ask-codey.com/glossary/dot-notation-mongodb): A field name such as "nutrition.calories", in quotes, that reaches a field inside an embedded document or inside each item of an array of documents.
- [drop()](https://www.ask-codey.com/glossary/drop): Removes a whole collection, its documents and the collection itself, where deleteMany with an empty filter leaves it there empty.
- [Duplicate Key Error](https://www.ask-codey.com/glossary/duplicate-key-error): The E11000 error MongoDB gives when a write would put a second document with the same \_id, or another value that must be unique, into a collection.
- [Embedded Document](https://www.ask-codey.com/glossary/embedded-document): An object stored inside another document.
- [find](https://www.ask-codey.com/glossary/find-mongodb): Returns the documents that match a filter.
- [findOne](https://www.ask-codey.com/glossary/findone): Gives back the first document that matches a filter, as one document rather than a list, or null when none matches.
- [insertOne and insertMany](https://www.ask-codey.com/glossary/insertone-and-insertmany): Add one or several documents to a collection.
- [ISODate](https://www.ask-codey.com/glossary/isodate): mongosh's way to write a date, such as ISODate("2026-01-24"), stored as a BSON date that sorts and compares by time.
- [Logical Operators](https://www.ask-codey.com/glossary/logical-operators-mongodb): $and, $or, $not and $nor: filter operators that combine conditions, or flip one and rule it out.
- [MongoClient](https://www.ask-codey.com/glossary/mongoclient): The official Node.js driver's connection to a MongoDB server, made from a connection string; db() and collection() pick where the data goes, and close() hangs up.
- [null](https://www.ask-codey.com/glossary/null-mongodb): A value meaning no value; in a filter, { field: null } matches a field that holds null and a field that is missing altogether.
- [Projection](https://www.ask-codey.com/glossary/projection-mongodb): Chooses which fields a query returns.
- [Query Filter](https://www.ask-codey.com/glossary/query-filter): An object describing which documents to match.
- [Query Operators](https://www.ask-codey.com/glossary/query-operators): $-prefixed conditions like $gt, $in and $or.
- [replaceOne](https://www.ask-codey.com/glossary/replaceone): Swaps a whole document for a new version you give it; every field the new version leaves out is gone, and the \_id stays.
- [sort, limit and skip](https://www.ask-codey.com/glossary/sort-limit-and-skip): Order results, cap them, and skip some for paging.
- [Update Operators](https://www.ask-codey.com/glossary/update-operators): $-prefixed instructions such as $set, $inc, $push and $pull that change parts of a document in place, in one step.
- [updateMany](https://www.ask-codey.com/glossary/updatemany): Changes every document that matches a filter, with an update operator such as $set saying what changes.
- [updateOne and $set](https://www.ask-codey.com/glossary/updateone-and-set): Change a matching document; $set updates just the given fields.

## Journeyman

- [$dateToString](https://www.ask-codey.com/glossary/datetostring): A pipeline expression that writes a date as text in the format you give, such as "%Y-%m" for 2026-03, optionally on a named time zone's clock.
- [$elemMatch](https://www.ask-codey.com/glossary/elemmatch): A filter operator on an array field that matches only when one item meets every condition inside it.
- [$group](https://www.ask-codey.com/glossary/group): The aggregation stage that groups documents and computes totals.
- [$jsonSchema](https://www.ask-codey.com/glossary/jsonschema): The validator operator that describes the shape a document must have: required fields, and each field's bsonType, minimum or allowed values (enum).
- [$lookup](https://www.ask-codey.com/glossary/lookup): The aggregation stage that joins in documents from another collection.
- [$match](https://www.ask-codey.com/glossary/match-mongodb): The aggregation stage that filters documents.
- [$project](https://www.ask-codey.com/glossary/project-mongodb): An aggregation stage that keeps only the fields it names, and can rename a field or leave out \_id, such as category set to "$\_id" with \_id set to 0.
- [$set and $addFields](https://www.ask-codey.com/glossary/set-and-addfields): Two names for one aggregation stage that adds a computed field to each document, or replaces one, and keeps every other field.
- [$setOnInsert](https://www.ask-codey.com/glossary/setoninsert): An update operator that sets its fields only when an upsert inserts a new document, so a later save never resets them.
- [$text](https://www.ask-codey.com/glossary/text): A query operator that searches a collection's text index for the words given in $search, in any case.
- [$type](https://www.ask-codey.com/glossary/type-mongodb): A filter operator that matches a field by the kind of value it holds, such as "string" or "number", which finds a number typed in as text.
- [$unwind](https://www.ask-codey.com/glossary/unwind): Splits a document into one per array element.
- [Accumulator](https://www.ask-codey.com/glossary/accumulator-mongodb): An operator in a $group stage that collects one value from every document in a group and turns them into one answer, such as $sum, $avg, $min, $max or $first.
- [Aggregation Expression](https://www.ask-codey.com/glossary/aggregation-expression): A small formula a pipeline stage works out for each document, such as $multiply to multiply numbers or $round to keep two decimal places.
- [Aggregation Pipeline](https://www.ask-codey.com/glossary/aggregation-pipeline): A series of stages that filter, reshape and summarize documents.
- [Aggregation Stage](https://www.ask-codey.com/glossary/aggregation-stage): One step of an aggregation pipeline, written as a document whose one field names its job, such as { $match: { category: "bikes" } }; it works on what the stage before it handed on.
- [Collection Scan](https://www.ask-codey.com/glossary/collection-scan): Reading every document in a collection to check it against a query's filter, which is what a query does when no index fits.
- [Compound Index](https://www.ask-codey.com/glossary/compound-index): An index on several fields, used from the leftmost field.
- [Computed Pattern](https://www.ask-codey.com/glossary/computed-pattern): Working a number out once, when the data is written, and storing it, such as a review count and a star total kept with $inc, instead of on every read.
- [createIndex](https://www.ask-codey.com/glossary/createindex): The method that builds an index on the fields you name, such as { customerId: 1 }, and answers with the new index's name.
- [Data Modeling in MongoDB](https://www.ask-codey.com/glossary/data-modeling-in-mongodb): Shaping documents around how the app reads data.
- [Decimal128](https://www.ask-codey.com/glossary/decimal128): The BSON type for an exact decimal number, used for money; written NumberDecimal("0.60") in mongosh.
- [Document Size Limit](https://www.ask-codey.com/glossary/document-size-limit): The most one MongoDB document can hold, 16 MB; a write that would make a document bigger is refused.
- [Extended Reference Pattern](https://www.ask-codey.com/glossary/extended-reference-pattern): Keeping another document's \_id together with a copy of the few fields a page shows with it, such as an order item with the product's name and the price paid.
- [Field Path](https://www.ask-codey.com/glossary/field-path): A field name in quotes with a dollar sign in front, such as "$total" (read "dollar total"), meaning the value of that field in each document.
- [Filter Builder](https://www.ask-codey.com/glossary/filter-builder): The C# driver's Builders&lt;T>.Filter, which builds a MongoDB filter one condition at a time, such as Eq for an exact value and Lte for less than or equal to.
- [findOneAndUpdate](https://www.ask-codey.com/glossary/findoneandupdate): Changes one document and gives it back, as it was before the change or, with returnDocument "after", as it is now.
- [Index in MongoDB](https://www.ask-codey.com/glossary/index-in-mongodb): Makes queries on a field fast instead of scanning everything.
- [IP Access List](https://www.ask-codey.com/glossary/ip-access-list): Atlas's list of the addresses allowed to connect to a cluster at all; 0.0.0.0/0 on it means every address.
- [lean()](https://www.ask-codey.com/glossary/lean): A Mongoose query option that gives back plain objects instead of Mongoose documents, which is lighter for code that only reads.
- [MongoDB Driver](https://www.ask-codey.com/glossary/mongodb-driver): The official library for using MongoDB from a programming language.
- [Mongoose](https://www.ask-codey.com/glossary/mongoose): A Node.js library adding schemas and models on top of MongoDB.
- [Mongoose Model](https://www.ask-codey.com/glossary/mongoose-model): The object Mongoose makes from a schema with mongoose.model, which saves and finds that kind of document in its collection with create, find and findById.
- [Mongoose Schema](https://www.ask-codey.com/glossary/mongoose-schema): The description of one kind of document in Mongoose: each field, its type and its rules, such as required or a minimum, checked before every save.
- [Object Document Mapper (ODM)](https://www.ask-codey.com/glossary/object-document-mapper-odm): A library, such as Mongoose, that maps your program's objects to database documents and back, with a schema that describes and checks each kind of document.
- [One-to-Few Relationship](https://www.ask-codey.com/glossary/one-to-few-relationship): A link from one document to a small, limited number of others, such as a bike and its few photos; usually embedded.
- [Polymorphic Pattern](https://www.ask-codey.com/glossary/polymorphic-pattern): Keeping documents of different shapes in one collection, with shared fields, each kind's own fields and a type field to tell them apart, such as bikes, helmets and lights.
- [populate](https://www.ask-codey.com/glossary/populate): A Mongoose method that swaps a stored reference, such as a pet's \_id, for the document it points to, by sending a second query from your app.
- [Schema Validation](https://www.ask-codey.com/glossary/schema-validation): Rules that make MongoDB reject documents with the wrong shape.
- [Soft Delete](https://www.ask-codey.com/glossary/soft-delete): Marking a document as removed, often with archived set to true, instead of deleting it, so it can be hidden now and brought back later.
- [Subset Pattern](https://www.ask-codey.com/glossary/subset-pattern): Keeping only the few items of a growing list that a page shows, such as a product's five newest reviews, inside the document, with the whole list in its own collection.
- [Text Index](https://www.ask-codey.com/glossary/text-index): An index on a collection's text fields that lets $text search them for whole words, in any case and form; one per collection.
- [Unbounded Array](https://www.ask-codey.com/glossary/unbounded-array): An array inside a document that keeps growing for as long as the app runs, such as every page view of a product; a modeling mistake.
- [Upsert](https://www.ask-codey.com/glossary/upsert): Update if it exists, insert if it doesn't.

## Freelancer

- [Atlas Search](https://www.ask-codey.com/glossary/atlas-search): Full-text search built into MongoDB Atlas.
- [Change Streams](https://www.ask-codey.com/glossary/change-streams): A real-time feed of changes to a collection.
- [collMod](https://www.ask-codey.com/glossary/collmod): The command that changes a collection that already exists, such as giving it a validator: db.runCommand({ collMod: "products", validator: ... }).
- [ESR Rule](https://www.ask-codey.com/glossary/esr-rule): The order for a compound index's fields: the fields matched exactly (equality) first, then the field you sort by, then the fields with a range.
- [executionStats](https://www.ask-codey.com/glossary/executionstats): The part of explain's report that counts a query's work: nReturned, totalKeysExamined, totalDocsExamined and executionTimeMillis.
- [explain()](https://www.ask-codey.com/glossary/explain): Shows how a query ran and whether it used an index.
- [Index Prefix](https://www.ask-codey.com/glossary/index-prefix): The first field, or first few fields, of a compound index; the index serves a query on its prefix, but not one on a later field alone.
- [NoSQL Injection](https://www.ask-codey.com/glossary/nosql-injection): An attack that sends a query operator, such as { "$gt": "" }, where the API expects text, so the database runs a filter the attacker chose.
- [Read Preference](https://www.ask-codey.com/glossary/read-preference): Which servers a query may read from.
- [Replica Set](https://www.ask-codey.com/glossary/replica-set): A group of servers holding copies of the data, with automatic failover.
- [Shard Key](https://www.ask-codey.com/glossary/shard-key): The field that decides which shard stores each document.
- [Sharded Cluster](https://www.ask-codey.com/glossary/sharded-cluster): MongoDB split across several shards for scale.
- [Transactions in MongoDB](https://www.ask-codey.com/glossary/transactions-in-mongodb): Several document changes that succeed or fail together.
- [validationLevel and validationAction](https://www.ask-codey.com/glossary/validationlevel-and-validationaction): A collection's two validation settings: validationLevel decides which writes are checked (strict or moderate), and validationAction what happens to a bad one (error or warn).
- [Write Concern](https://www.ask-codey.com/glossary/write-concern): How many servers must confirm a write before it counts.

## Master

- [Atlas Vector Search](https://www.ask-codey.com/glossary/atlas-vector-search): Similarity search over embeddings inside MongoDB Atlas.
- [Oplog](https://www.ask-codey.com/glossary/oplog): The log of writes that secondaries replay to stay in sync.
- [Schema Design Patterns](https://www.ask-codey.com/glossary/schema-design-patterns): Proven document shapes for common needs, like bucket and subset.
- [WiredTiger](https://www.ask-codey.com/glossary/wiredtiger): MongoDB's storage engine.

[More subjects in Databases](https://www.ask-codey.com/glossary/groups/databases)

Source: https://www.ask-codey.com/glossary/subjects/mongodb
