MongoDB Collection Model

JSON →
library 5.35.0 ·javascript
verified Jun 5, 2026

A data model for MongoDB collection metadata used in the MongoDB Compass ecosystem. Version 5.35.0 provides TypeScript types and supports both ESM and CJS. It models collection properties like indexes, document count, storage size, and validation schema, and is primarily used to represent collection information retrieved from MongoDB servers. Released as part of the mongodb-js Compass packages, it follows the Compass release cadence. Unlike the MongoDB Node.js driver's collection object, this library focuses on serializable metadata with helper methods for UI display.