UltipaDocs
Try Playground
  • Introduction
  • Terminologies
    • Reserved Words
    • Data Types
    • Alias
    • Operators
    • Expression
    • Filter
    • Prefix
    • Node and Edge Templates
    • Homologous and Heterologous Data
    • Clause Execution Times
    • Graphset
    • Schema
    • Property
    • Insert
    • Overwrite
    • Upsert
    • Update
    • Delete
    • Find Nodes
    • Find Edges
      • AB
      • Autonet
      • Spread
      • Path Template
      • K-Hop
      • K-Hop Template
    • Find Subgraphs
    • GROUP BY
    • ORDER BY
    • SKIP
    • LIMIT
    • WHERE
    • RETURN
    • WITH
    • UNCOLLECT
    • UNION
    • UNION ALL
    • CALL
    • BATCH
      • Schema Checker
      • Equal
      • Not Equal
      • Less Than
      • Greater Than
      • Less Than or Equal
      • Greater Than or Equal
      • Between
      • Between or Equal
      • Beong to
      • Not Belong To
      • CONTAINS | String
      • CONTAINS | Full-Text
      • Regular Match
      • IS NULL
      • IS NOT NULL
      • And
      • Or
      • Not
      • Exclusive OR
      • DISTINCT
      • toString()
      • toInteger()
      • toFloat()
      • toDouble()
      • toDecimal()
      • toSet()
      • castToRaw()
      • now()
      • dateAdd()
      • dateDiff()
      • year()
      • month()
      • day()
      • dayOfWeek()
      • dateFormat()
      • point()
      • distance()
      • pointInPolygon()
      • lower()
      • upper()
      • reverse()
      • startsWith()
      • endsWith()
      • JSON_decode()
      • JSON_merge()
      • trim()
      • ltrim()
      • rtrim()
      • left()
      • right()
      • substring()
      • replace()
      • split()
      • intersection()
      • difference()
      • listUnion()
      • size()
      • head()
      • reduce()
      • listContains()
      • append()
      • pi()
      • pow()
      • sqrt()
      • abs()
      • floor()
      • ceil()
      • round()
      • sin()
      • cos()
      • tan()
      • cot()
      • asin()
      • acos()
      • atan()
      • length()
      • pnodes()
      • pedges()
      • count()
      • sum()
      • max()
      • min()
      • avg()
      • stddev()
      • collect()
      • dedup()
      • CASE
      • table()
      • coalesce()
      • ifnull()
    • Acceleration
    • Index
    • Full-text
    • LTE
    • Real-time Process
    • Backend Task
    • Analytics Node
    • Server Statistics
    • Server Backup
    • Privilege
    • Policy
    • User
  • Trigger
  1. Docs
  2. /
  3. UQL
  4. /
  5. Syntax

Expression

An expression is a combination of constants, alias calls, operators and functions that produces one or more values.

Purpose
Example
Use decimal constant-10.25,1,1691636269
Use textual constant"graph",'uql',' both ' and " ',"2020-01-01 0:0:0"
Build list with constant[1, 2, 3],["graph", "database"],[ ]
Call an aliasnodes,edges,paths,mylist,groupName,count,`ABC-123`
Call a propertynodes.age,edges.`version-old`,this.age,age
Call the values of coordinates of a point datalocation.x,location.y
Call the schemaedges.@,this.@
Call the element(s) of a listmylist[5],mylist[3:6],mylist[2:],mylist[:4]
Build list with alias[nodes.level, -1, "NaN"],[groupName, count]
DecuplicationDISTINCT nodes.name,DISTINCT nodes.name, nodes.age
Numeric operation1 + 3 * 2,year("2022-04-12") % 4
Conditional operation3 > 1,nodes.age == 20,@default,groupName IN ["graph", "database"]
Logical operation@student && age > 10
General function operationnow(),toString(nodes.age),length(paths)
Aggregation function operationcount(nodes),collect(nodes.age)
CASE function operationCASE WHEN score >= 80 THEN "pass" ELSE "fail" END
Judgement on nullnodes.age IS NULL,edges.time IS NOT NULL