Docs · static mirror — the interactive version loads with JavaScript.

MongoDB

Source: https://runstack.engineer/docs/toolkits/mongodb

Query and manage MongoDB databases, collections, documents, aggregations and indexes.

Tools (27):

ToolDescription
mongodbListDatabasesList databases on the MongoDB server with sizes. Use to discover what data is available before querying.
mongodbPingServerPing the MongoDB server to verify connectivity and get server hello metadata. Use to validate the connection.
mongodbListCollectionsList collections (and views) in a database with their types. Use to discover queryable collections.
mongodbDatabaseStatsGet database storage stats: data size, index size, collection and object counts. Use for capacity review.
mongodbCollectionStatsGet collection stats: document count, sizes, index details and shard info. Use to inspect a collection before heavy queries.
mongodbCreateCollectionCreate a new collection, optionally capped or with a JSON-schema validator. Use before inserting into a fresh namespace.
mongodbDropCollectionDrop a collection and all its documents and indexes. Irreversible — confirm with the user first.
mongodbRenameCollectionRename a collection within its database. Updates the namespace; indexes move with it.
mongodbFindDocumentsFind documents with filter, projection, sort, skip and limit. Defaults to 50 docs (max 1000). Use for reads and exploration.
mongodbFindOneFind the first document matching a filter. Use for fetching a single record by id or unique key.
mongodbInsertOneInsert a single document into a collection. Returns the generated _id.
mongodbInsertManyInsert multiple documents in one batch (max 1000 per call). Returns inserted ids.
mongodbUpdateOneUpdate the first document matching a filter with $set/$inc/etc. Supports upsert.
mongodbUpdateManyUpdate all documents matching a filter. Use for bulk status changes and migrations.
mongodbReplaceOneReplace a whole document (keeping _id) with a new one. Supports upsert.
mongodbDeleteOneDelete the first document matching a filter.
mongodbDeleteManyDelete all documents matching a filter. Returns the deleted count — confirm scope with the user first on broad filters.
mongodbFindOneAndUpdateAtomically update one document and return it (before or after the change). Use for counters, reservations and read-modify-write.
mongodbFindOneAndDeleteAtomically delete one document and return it. Use for queue-style claim-and-remove patterns.
mongodbBulkWriteRun mixed insert/update/delete operations in one batch for efficiency.
mongodbAggregateRun an aggregation pipeline ($match, $group, $lookup, $unwind, …) for analytics and reports.
mongodbCountDocumentsCount documents matching a filter exactly (scans the collection). Use for filtered totals.
mongodbEstimatedDocumentCountFast estimated collection size from metadata (no filter). Use for quick size checks on large collections.
mongodbDistinctList distinct values of a field, optionally filtered. Use for dropdowns, facets and cardinality checks.
mongodbCreateIndexCreate an index (single, compound, text, geospatial, TTL) to speed queries and enforce uniqueness.
mongodbListIndexesList indexes on a collection with keys, uniqueness and sizes. Use to review query coverage.
mongodbDropIndexDrop an index by name (use "*" for all non-_id indexes). Use to remove unused or blocking indexes.