Single-Line Comments
In UQL, single-line comments can be written using two forward slashes //
. Everything following //
on the same line is treated as a comment and ignored during query execution.
n({@User.name == "rowlock"}).re({@Follows}).n({@User} as n) // Retrieves users who follow 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.
/* This query retrieves users who follow rowlock,
and returns all their names */
n({@User.name == "rowlock"}).re({@Follows}).n({@User} as n)
return n.name