| This page explains what the Schema tab does and how to access it in MongoDB Compass. It also shows how the Schema tab analyzes and visualizes the schema of JSON data in a collection. |
MongoDB schema
JSON code is grouped into categories named objects. Schema are what defines an object. For example, if a JSON object is human, then the schema would be the data points associated with what a human is: hair color, personality type, heritage, education level, or any other data point included in the JSON object human.
The schema tab allows users to analyze the objects in their data with detailed graphs.

| For more information on schema and the Schema tab, see https://docs.mongodb.com/compass/master/schema/#overview |
Run a schema analysis
1. Select the collection with the data you would like analyze schema for.
2. Select the Schema tab on the collection Compass dashboard.

3. Select the green Analyze Schema button in the center of the dashboard.

4. Identify the object tag you wish to analyze on the top-left of each analysis window.
Example of an object schema analysis

| Interactive graphs and other metrics analyzing the schema can be found on the right side of each field. If the object does not contain fields, the data analysis will appear to the right of the object. |
| The object of each analysis window can be found near the top-left corner. In this example, batters is the object. |