UltipaDocs
Try Playground
  • Introduction
  • Terminologies
    • Graphset
    • Schema
    • Property
    • Constraints
    • Insert
    • Overwrite or Insert
    • Upsert
    • Update
    • Delete
    • Find Nodes
    • Find Edges
      • AB
      • Autonet
      • Spread
      • Path Template
      • K-Hop
      • K-Hop Template
    • GROUP BY
    • ORDER BY
    • SKIP
    • LIMIT
    • WHERE
    • RETURN
    • WITH
    • UNCOLLECT
    • UNION
    • UNION ALL
    • CALL
    • All Functions
    • Path Functions
    • Aggregate Functions
    • Mathematical Functions
    • Trigonometric Functions
    • String Functions
    • List Functions
    • Datetime Functions
    • Spatial Functions
    • Table Functions
    • Null Functions
    • Type Conversion Functions
  • Operators
  • Expressions
    • Index
    • Full-text Index
    • Vector Index
    • Cache
    • Overview
    • Managing HDC Graphs
    • HDC Graph Queries
    • Process
    • Job
    • Execution Plan
    • Alias
    • Filter
    • Values and Types
    • Data Flow in Queries
    • Comments
    • Reserved Words
  • Access Control
  1. Docs
  2. /
  3. UQL
  4. /
  5. Syntax

Comments

Single-Line Comments

In UQL, single-line comments are written using two forward slashes //. Everything following // on the same line is treated as a comment and ignored during query execution.

UQL
n({@User.name == "rowlock"}).re({@Follows}).n({@User} as n) // Retrieves users followed by rowlock
return n.name

Multi-Line Comments

Multi-line comments begin with a forward slash and asterisk (/*) and end with an asterisk and forward slash (*/), allowing for comments that span multiple lines.

UQL
/* This query retrieves users followed by rowlock,
and returns all their names */
n({@User.name == "rowlock"}).re({@Follows}).n({@User} as n)
return n.name