Where MongoDB Schema Validation Actually Lives
MongoDB can enforce a schema, but only if you ask. I tested its validation options on 8.0 and 9.0 and compared them with SQL Server constraints.
A Guardrail Only Humans Enforce Isn’t One
MongoDB won’t stop you querying a collection that doesn’t exist, or storing mismatched documents side by side. That’s by design, and it has a cost.