mongodb-schema

JSON →
library 12.7.0 ·javascript
verified Jun 5, 2026

Infer a probabilistic schema for a MongoDB collection by sampling documents. Version 12.7.0. It returns a detailed schema including field names, types, probabilities, duplicate detection, and encountered values. Works as a CLI tool or programmatically via Node.js. Unlike schema validation tools, it analyzes existing data to infer structure. It is actively maintained by MongoDB and supports semantic type discovery.