Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ Replaced by:
CREATE CONSTRAINT FOR ... REQUIRE ...
----


a|
label:functionality[]
label:deprecated[]
Expand Down Expand Up @@ -184,26 +183,6 @@ Please instead use:
----
point.withinBBox(point({x:1, y:1}), point({x:0, y:0}), point({x:2, y:2}))
----

a|
label:functionality[]
label:deprecated[]
label:new[]
[source, cypher, role="noheader"]
----
DROP CONSTRAINT
ON (n:LabelName)
ASSERT (n.propertyName_1, …, n.propertyName_n) IS UNIQUE
----
a|
Unique property constraints now allow multiple properties.

Replaced by:
[source, cypher, role="noheader"]
----
DROP CONSTRAINT name [IF EXISTS]
----

|===

=== New features
Expand All @@ -223,33 +202,50 @@ CREATE CONSTRAINT FOR ... REQUIRE ...
a|
New syntax for creating constraints, applicable to all constraint types.


a|
label:syntax[]
label:functionality[]
label:new[]
[source, cypher, role="noheader"]
----
CREATE CONSTRAINT [constraint_name] [IF NOT EXISTS]
FOR ...
REQUIRE ... IS NOT NULL
OPTIONS "{" "}"
FOR (n:LabelName)
REQUIRE (n.propertyName_1, …, n.propertyName_n) IS UNIQUE
[OPTIONS "{" option: value[, ...] "}"]
----
a|
Existence constraints now allow an `OPTIONS` map, however, at this point there are no available values for the map.

Unique property constraints now allow multiple properties, ensuring that the combination of property values are unique.

a|
label:functionality[]
label:new[]
label:deprecated[]
[source, cypher, role="noheader"]
----
DROP CONSTRAINT
ON (n:LabelName)
ASSERT (n.propertyName_1, …, n.propertyName_n) IS UNIQUE
----
a|
Unique property constraints now allow multiple properties.

Replaced by:
[source, cypher, role="noheader"]
----
DROP CONSTRAINT name [IF EXISTS]
----

a|
label:syntax[]
label:new[]
[source, cypher, role="noheader"]
----
CREATE CONSTRAINT [constraint_name] [IF NOT EXISTS]
FOR (n:LabelName)
REQUIRE (n.propertyName_1, …, n.propertyName_n) IS UNIQUE
[OPTIONS "{" option: value[, ...] "}"]
FOR ...
REQUIRE ... IS NOT NULL
OPTIONS "{" "}"
----
a|
Unique property constraints now allow multiple properties, ensuring that the combination of property values are unique.
Existence constraints now allow an `OPTIONS` map, however, at this point there are no available values for the map.

a|
label:functionality[]
Expand Down Expand Up @@ -363,23 +359,25 @@ New Cypher command for modifying a database by changing its access mode.

a|
label:functionality[]
label:new[]
label:new[] +
New privilege:
[source, cypher, role="noheader"]
----
ALTER DATABASE
----
a|
New Cypher command for administering privilege for modifying databases.
New privilege that allows a user to modify databases.

a|
label:functionality[]
label:new[]
label:new[] +
New privilege:
[source, cypher, role="noheader"]
----
SET DATABASE ACCESS
----
a|
New Cypher command for administering the privilege for modifying database access mode.
New privilege that allows a user to modify database access mode.
a|
label:functionality[]
label:new[]
Expand Down