SHOW CURRENT GRAPH TYPE
Generic Description
Inspect the graph type bound to the current graph context.
Simple example:
SHOW CURRENT GRAPH TYPE
Consumer-Level Explanation
Use SHOW CURRENT GRAPH TYPE when the query must inspect the graph type bound to the current graph context 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
This statement is about type introspection of the current graph context, which matters in systems that care about declared graph structure rather than only ad hoc labels and properties.
What this clause is really for:
- it defines one concrete stage in the Cypher row pipeline, so variables available before and after
SHOW CURRENT GRAPH TYPEmust be clear - it should make graph structure, temporal filters, document payload shaping, or procedure output explicit instead of relying on client-side interpretation
- planner tooling depends on this clause boundary to know row grain, variable scope, and whether later expressions are reads, writes, schema operations, or projections
Advanced Example
This example keeps SHOW CURRENT GRAPH TYPE 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
- type inspection during schema work
- debugging graph-type-aware tooling
- developer introspection of the active graph context
Real Limitations And Tradeoffs
- only useful if you are actually working with graph type declarations or tooling around them
- less relevant for purely ad hoc graph usage
- should be interpreted in the context of current graph selection