Skip to content

Commit

Permalink
Add example for CIR-2017-173
Browse files Browse the repository at this point in the history
  • Loading branch information
Mats-SX committed Mar 1, 2017
1 parent 5fdef2c commit 49f1aa6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cip/1.accepted/CIP2016-12-14-Constraint-syntax.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,14 @@ FOR (p:Programmer)
REQUIRE p:Person
----

.Constraint example from CIR-2017-173
[source, cypher]
----
CREATE CONSTRAINT enforce_dag_unique_for_R_links
FOR p = (a)-[:R]-(b)
REQUIRE length(p) < 2
----

=== Interaction with existing features

The main interaction between the constraints and the rest of the language occurs during updating statements.
Expand Down

0 comments on commit 49f1aa6

Please sign in to comment.