SHOW CONSTRAINTS

Generic Description

List current constraints.

Simple example:

SHOW CONSTRAINTS

Consumer-Level Explanation

Use SHOW CONSTRAINTS when the query must list current constraints and the planner needs to see that operation as part of the Cypher row pipeline. Keep the clause explicit because it controls row grain, variable scope, and what later clauses are allowed to reference.

More Detailed Explanation

SHOW CONSTRAINTS is part of schema introspection. It is useful for verifying whether the database is enforcing the rules you think it is enforcing.

What this clause is really for:

Advanced Example

This example keeps SHOW CONSTRAINTS inside a complete query pipeline so the clause boundary, visible variables, and returned row shape are clear to planner tooling.

SHOW INDEXES

Real Use Cases

Real Limitations And Tradeoffs