Graph types

Graph types are generally available starting in Neo4j 2026.06. Prior to this release, the feature was in preview.

Graph types allow you to specify a graph schema for a database.

When a database is created, it has an empty graph type, meaning it is free from any constraints on what can be stored in a database. Setting a graph type, typically done following the creation of a database, enables users to impose a schema on the nodes, relationships, and properties included in the graph type, thereby ensuring the integrity and quality of the data in a graph.

Cypher® supports open graph types, meaning that a graph type only constrains the data included by the graph type. It does not impose any constraints on nodes, relationships, and properties not included by the graph type.

For more information about working with graph types, see:

For reference material about the Cypher commands used to manage graph types, see Syntax → Graph types.