Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions pages/memgraph-lab/features/graph-schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {CommunityLinks} from '/components/social-card/CommunityLinks'

# Graph schema


If you need to check the data model of the data currently in the database, you
can generate a **graph schema** that will show all the node types and
relationships between them.
Expand All @@ -23,7 +22,6 @@ If you're connected to a Memgraph instance running with the
flag](/querying/schema#run-time-schema-tracking), you'll see the types for each
node and relationship property.


## Generate a graph schema

To generate the graph schema, navigate to the **Graph schema** tab in the
Expand All @@ -38,7 +36,6 @@ reverse-engineering an unknown data structure.

![](/pages/data-visualization/features/graph-schema/graph-schema.png)


## Inspect properties

Once the schema is generated, you can click on any node or relationship type in
Expand All @@ -55,4 +52,30 @@ uniform or varies between entries.

![](/pages/data-visualization/features/graph-schema/schema-properties.png)

### Descriptions (Memgraph & Lab 3.10+)

You can see and edit **descriptions** on node labels, relationship types, and their
properties directly within the schema view.

> **Availability:**
> - **Memgraph**: version 3.10 and above
> - **Memgraph Lab**: version 3.10 and above

This feature helps you document your data model by adding helpful notes or
clarifications to any node label, relationship type, or property. Descriptions
you add are saved and displayed to anyone viewing the schema, making
collaboration and understanding of the graph structure easier. It's a powerful
way to document your graph data model and ensure all users share the same
up-to-date understanding of your schema.

![](/pages/data-visualization/features/graph-schema/schema-descriptions.png)

**Tip:** If you've added descriptions to node labels, relationship types, or
properties, you'll also see them when running regular Cypher queries and
viewing the results in the graph view-not just in the schema tab. This is
useful for providing extra context while exploring data, as the descriptions
appear directly alongside the schema elements in your query results.

![](/pages/data-visualization/features/graph-schema/query-descriptions.png)

<CommunityLinks/>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.