Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ build.log
.idea/
*.iml
package-lock.json
.claude/
1 change: 1 addition & 0 deletions antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version: '5'
start_page: ROOT:introduction/index.adoc
nav:
- modules/ROOT/content-nav.adoc
- modules/cheat-sheet/content-nav.adoc
asciidoc:
attributes:
neo4j-version: '2026.04'
74 changes: 74 additions & 0 deletions cheat-sheet-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
site:
title: Neo4j Documentation Cheat Sheet
url: https://neo4j.com/docs
start_page: cypher-cheat-sheet:ROOT:index.adoc

content:
sources:
- url: ./
branches: HEAD

ui:
bundle:
url: https://static-content.neo4j.com/build/ui-bundle-latest.zip
snapshot: true
output_dir: /assets

urls:
html_extension_style: indexify

output:
dir: ./build/docs

antora:
extensions:
- require: "@neo4j-antora/antora-modify-sitemaps"
sitemap_version: '5'
sitemap_loc_version: 'current'
move_sitemaps_to_components: true

asciidoc:
extensions:
- "@neo4j-documentation/remote-include"
- "@neo4j-documentation/macros"
- "@neo4j-antora/antora-add-notes"
attributes:
page-theme: cheat-sheet
page-type: Docs
page-search-type: Docs
page-search-site: Reference Docs
page-canonical-root: /docs
page-pagination: false
page-no-canonical: true
page-origin-private: true
page-no-toolbar: true
page-hide-toc: false
page-mixpanel: 4bfb2414ab973c741b6f067bf06d5575
includePDF: false
nonhtmloutput: ""
experimental: ''
copyright: 2025
common-license-page-uri: https://neo4j.com/docs/license/
neo4j-docs-base-uri: https://neo4j.com/docs
github-raw-page-uri: https://raw.githubusercontent.com/neo4j
page-cheatsheet-product: Cypher
page-cheatsheet-products:
- name: 'All'
class: 'all'
default: true
- name: 'Neo4j Community Edition'
class: 'neo4j-ce'
- name: 'Neo4j Enterprise Edition'
class: 'neo4j-ee'
- name: 'AuraDB Free'
class: 'aura-dbf'
- name: 'AuraDB Professional'
class: 'aura-dbp'
- name: 'AuraDB Business Critical'
class: 'aura-dbc'
- name: 'AuraDB Virtual Dedicated Cloud'
class: 'aura-dbe'
- name: 'AuraDS Professional'
class: 'aura-dsp'
- name: 'AuraDS Enterprise'
class: 'aura-dse'
69 changes: 69 additions & 0 deletions cheat-sheet-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
site:
title: Neo4j Documentation Cheat Sheet
url: https://neo4j.com/docs
start_page: cypher-cheat-sheet:ROOT:index.adoc

content:
sources:
- url: ./
branches: ['4.4', 'HEAD', 'cypher-25']

ui:
bundle:
url: https://static-content.neo4j.com/build/ui-bundle-latest.zip
snapshot: true
output_dir: /assets

output:
dir: ./build/docs

urls:
html_extension_style: indexify

asciidoc:
extensions:
- "@neo4j-documentation/remote-include"
- "@neo4j-documentation/macros"
- "@neo4j-antora/antora-add-notes"
- "@neo4j-antora/antora-page-roles"
attributes:
page-theme: cheat-sheet
page-type: Docs
page-search-type: Docs
page-search-site: Reference Docs
page-canonical-root: /docs
page-pagination: false
page-no-canonical: true
page-origin-private: true
page-no-toolbar: true
page-hide-toc: false
page-publish: true
page-mixpanel: 4bfb2414ab973c741b6f067bf06d5575
includePDF: false
nonhtmloutput: ""
experimental: ''
copyright: 2025
common-license-page-uri: https://neo4j.com/docs/license/
github-raw-page-uri: https://raw.githubusercontent.com/neo4j
neo4j-docs-base-uri: /docs
page-cheatsheet-product: Cypher
page-cheatsheet-products:
- name: 'All'
class: 'all'
default: true
- name: 'Neo4j Community Edition'
class: 'neo4j-ce'
- name: 'Neo4j Enterprise Edition'
class: 'neo4j-ee'
- name: 'AuraDB Free'
class: 'aura-dbf'
- name: 'AuraDB Professional'
class: 'aura-dbp'
- name: 'AuraDB Business Critical'
class: 'aura-dbc'
- name: 'AuraDB Virtual Dedicated Cloud'
class: 'aura-dbe'
- name: 'AuraDS Professional'
class: 'aura-dsp'
- name: 'AuraDS Enterprise'
class: 'aura-dse'
1 change: 1 addition & 0 deletions modules/cheat-sheet/content-nav.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* xref:index.adoc[]
4 changes: 4 additions & 0 deletions modules/cheat-sheet/examples/artists-fieldterminator.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1;ABBA;1992
2;Roxette;1986
3;Europe;1979
4;The Cardigans;1992
5 changes: 5 additions & 0 deletions modules/cheat-sheet/examples/artists-with-headers.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Id,Name,Year
1,ABBA,1992
2,Roxette,1986
3,Europe,1979
4,The Cardigans,1992
4 changes: 4 additions & 0 deletions modules/cheat-sheet/examples/artists.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1,ABBA,1992
2,Roxette,1986
3,Europe,1979
4,The Cardigans,1992
106 changes: 106 additions & 0 deletions modules/cheat-sheet/pages/aggregating-functions.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
= link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/[Aggregating functions^]


====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_avg]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-avg[`avg()`^] function returns the average of a set of `INTEGER` or `FLOAT` values.
====

====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_duration_avg]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-avg-duration[`avg()` duration^] function returns the average of a set of `DURATION` values.
====


====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_collect]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-collect[`collect()`^] function returns a single aggregated list containing the non-`null` values returned by an expression.
====


====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_count]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-count[`count()`^] function returns the number of values or rows.
When `count(*)` is used, the function returns the number of matching rows.
====


====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_count_as_expression]

[.description]
The `count()` function can also be passed an expression.
If so, it returns the number of non-`null` values returned by the given expression.
====

====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_max]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-max[`max()`^] function returns the maximum value in a set of values.
====

====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_min]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-min[`min()`^] function returns the minimum value in a set of values.
====


====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_percentile_cont]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-percentilecont[`percentileCont()`^] function returns the percentile of the given value over a group, with a percentile from `0.0` to `1.0`.
It uses a linear interpolation method, calculating a weighted average between two values if the desired percentile lies between them.
====


====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_percentile_disc]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-percentiledisc[`percentileDisc()`^] function returns the percentile of the given value over a group, with a percentile from `0.0` to `1.0`.
It uses a rounding method and calculates the nearest value to the percentile.
====

====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_stdev]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-stdev[`stDev()`^] function returns the standard deviation for the given value over a group.
It uses a standard two-pass method, with `N - 1` as the denominator, and should be used when taking a sample of the population for an unbiased estimate.
====


====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_stdevp]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-stdevp[`stDevP()`^] function returns the standard deviation for the given value over a group.
It uses a standard two-pass method, with `N` as the denominator, and should be used when calculating the standard deviation for an entire population.
====


====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_sum]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-sum[`sum()`^] function returns the sum of a set of numeric values.
====

====
include::ROOT:functions/aggregating.adoc[tag=functions_aggregating_sum_duration]

[.description]
The link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/functions/aggregating/#functions-sum-duration[`sum()` duration^] function returns the sum of a set of durations.
====
Loading
Loading