Skip to content

Commit 9aef72a

Browse files
committed
document statement types
1 parent 86b3a1e commit 9aef72a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

modules/ROOT/pages/queries/index.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ It also contains information about Cypher expressions.
66

77
* xref:queries/concepts.adoc[]
88
* xref:queries/basic.adoc[]
9+
* xref:queries/statement-types.adoc[]
910
* xref:queries/expressions.adoc[]
1011
* xref:queries/case.adoc[]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
= Statement types
2+
:description: This section provides an overview of the different Statement types in Cypher.
3+
include::https://raw.githubusercontent.com/neo4j-graphacademy/courses/main/asciidoc/ads/data-analysis.adoc[]
4+
5+
Cypher knows the following different statement types:
6+
7+
* Administration command are documented in the link:{neo4j-docs-base-uri}/operations-manual/current/[Operations Manual]. An example of an administration command would be `CREATE DATABASE movies`
8+
* Schema modification, which modify indexes and constraints, such as `CREATE CONSTRAINT ...`
9+
* Read query, which do not modify the data on your database, such as `MATCH (n) RETURN n`
10+
* Write query, which modify the data on your database, such as `CREATE (n) RETURN n`
11+
12+
Queries executed in the same transaction must either be of the same type, or a combination of schema modifications and read commands.

0 commit comments

Comments
 (0)