Database Reference
In-Depth Information
Expressions
Cypher supports a variety of expressions. The following is the list of such expressions that
can be used within Cypher queries:
• Decimal, hexadecimal, or octal integer literals
• String literals "Hello" or 'Hey'
• Boolean literals true/false or TRUE/FALSE.
• Collection of expressions: ["x", "z"] or [4,5,6] or ["a", 2, n.property, {param}], [ ]
• Function call and aggregate functions such as count (*) , avg(x) , sum(y)
• Mathematical, comparison, Boolean, string, and collection operators
• CASE expressions
All the preceding defined patterns are used in conjunction with the CRUD operations with-
in Cypher queries. Cypher pattern matching borrows the approach to expressions from
SPARQL and a few of the other collection semantics have been borrowed from languages
such as Haskell and Python. Cypher also borrows much of its structure from SQL itself and
made it easy to understand for developers who are already familiar with SQL. It also
helped them to achieve one of their critical goals of SQL familiarity.
Let's see the similarity between the structure of Cypher and SQL:
Search WWH ::




Custom Search