UltipaDocs
Products
Solutions
Resources
Company
Start Free Trial
UltipaDocs
Start Free Trial
  • Introduction
    • Overview
    • Node and Edge Patterns
    • Path Patterns
    • Quantified Paths
    • Shortest Paths
    • Graph Patterns
    • Overview
    • Typed Graph
    • Open Graph
    • Graph Sharding and Storage
    • Constraints
    • Unique Identifiers
    • INSERT
    • INSERT OVERWRITE
    • UPSERT
    • SET
    • REMOVE
    • DELETE
    • Query Composition
    • Result Table and Visualization
    • MATCH
    • OPTIONAL MATCH
    • FILTER
    • LET
    • FOR
    • ORDER BY
    • LIMIT
    • SKIP
    • CALL
    • RETURN
    • Composite Query
    • NEXT
    • All Functions
    • Scalar Functions
    • Path Functions
    • Aggregate Functions
    • Mathematical Functions
    • Trigonometric Functions
    • String Functions
    • List Functions
    • Datetime Functions
    • Spatial Functions
    • Label Functions
    • Record Functions
    • Table Functions
  • Operators
  • Predicates
    • CASE
    • NULLIF
    • COALESCE
    • LET Value Expression
    • Value Query Expression
    • Index
    • Full-text Index
    • Vector Index
    • Spatial Index
    • Overview
    • Managing HDC Graphs
    • HDC Graph Queries
  • Transaction
  • Trigger
  • Stored Procedure
    • Process
    • Session
    • Job
    • Execution Plan
    • Variables
    • Values and Types
    • Comments
    • Reserved Words
    • Syntactic Notation
  • Access Control
  • GQL Conformance
  1. Docs
  2. /
  3. ISO GQL
  4. /
  5. Functions

Label Functions

labelContains()

Checks whether an entity has a specific label.

SyntaxlabelContains(<element>, <label>)
ArgumentsNameTypeDescription
<element>NODE, EDGEElement variable reference
<label>STRINGThe label name to check
Return TypeBOOL
GQL
MATCH (n) WHERE labelContains(n, 'Person') RETURN n._id

labelHasAny()

Checks whether an entity has at least one label.

SyntaxlabelHasAny(<element>)
ArgumentsNameTypeDescription
<element>NODE, EDGEElement variable reference
Return TypeBOOL
GQL
MATCH (n) WHERE labelHasAny(n) RETURN n._id

labels()

Returns a list of all labels on an entity.

Syntaxlabels(<element>)
ArgumentsNameTypeDescription
<element>NODE, EDGEElement variable reference
Return TypeSTRING
GQL
MATCH (n {_id: 'p3'}) RETURN labels(n)