Docs Menu

Enforce a Schema

On this page

You can control the shape and contents of documents in a collection by defining a schema. Schemas let you require specific fields, control the type of a field's value, and validate changes before committing write operations.

This guide shows you how to define, configure, and deploy a schema for a linked MongoDB Atlas collection.

Data Lakes Do Not Support Schemas

Data Lake data sources do not support schema validation or data access rules. You can only access a Data Lake data source in a system function.

Give Feedback
MongoDB logo
© 2021 MongoDB, Inc.


  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.