# Label predicate for virtual node

**URL:** <https://community.neo4j.com/t/label-predicate-for-virtual-node/80427>\
**Category:** Graph Academy\
**Created:** [August 5, 2026, 9:16am UTC](https://community.neo4j.com/t/label-predicate-for-virtual-node/80427 "2026-08-05T09:16:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dongho](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dongho/32/3279_2.png) [@Dongho](https://community.neo4j.com/u/Dongho)\
**Post date:** [August 5, 2026, 9:16am UTC](https://community.neo4j.com/t/label-predicate-for-virtual-node/80427/1 "2026-08-05T09:16:57Z")

</div>

Label predicate for the virtual node, as shown in the training page below, doesn't work.

SHOW CURRENT GRAPH TYPE AS GRAPH  
YIELD nodes, relationships  
RETURN [n IN nodes WHERE n:NodeElementType | n.label] AS elementTypes

> **[Managing Graph Types | Graph Type Schema Enforcement](https://graphacademy.neo4j.com/courses/cypher-graph-types/1-schema-enforcement/5-managing-graph-types)**
>
> Define and enforce a graph schema using graph types in Neo4j
