Commonly used Functions
String Functions
match (a) return toUpper(a.firstname);
RETURN left('hello', 3)
RETURN lTrim(' hello')
RETURN replace("hello", "l", "w")
RETURN reverse('hello')
RETURN substring('hello', 1, 3), substring('hello', 2)
RETURN toString(11.5),
toString('already a string'),
toString(true),
toString(date({year:1984, month:10, day:11})) AS dateString,
toString(datetime({year:1984, month:10, day:11, hour:12, minute:31, second:14, millisecond: 341, timezone: 'Europe/Stockholm'})) AS datetimeString,
toString(duration({minutes: 12, seconds: -60})) AS durationString
Aggregation Functions
COUNT: Counts the number of items.MAXandMIN: Find the maximum or minimum of a set of values.
Date and Time Functions
date(): Creates a date from a string or a map.datetime(): Creates a datetime from a string or a map.duration.between(): Calculates the duration between two temporal values.
List Functions
COLLECT: Aggregates values into a list.SIZE: Returns the size of a list.RANGE: Creates a list containing a sequence of integers.
Mathematical Functions
ABS: Returns the absolute value.ROUND,CEIL,FLOOR: Round numbers to the nearest integer, up, or down.
Logical Functions
COALESCE: Returns the first non-null value in a list of expressions.
Spatial Functions
point: Creates a point in a 2D space (or 3D if you add elevation) which can be used for spatial queries.distance: Calculates the geodesic distance between two points in Meters. Cherryhill to Moorestown. Verify the result https://www.nhc.noaa.gov/gccalc.shtmlapoc.coll.sort: Sorts a list.apoc.map.merge: Merges two maps.
Last updated