From bc5d0e72bbad1700d6738ae94ee35ad1d7455b39 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Mon, 15 Dec 2014 23:36:58 +0200 Subject: Neo4J DB reset script: reset-db__single_link.cypher --- res/neo4j/reset-db__single_link.cypher | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 res/neo4j/reset-db__single_link.cypher diff --git a/res/neo4j/reset-db__single_link.cypher b/res/neo4j/reset-db__single_link.cypher new file mode 100644 index 00000000..39dcf6e4 --- /dev/null +++ b/res/neo4j/reset-db__single_link.cypher @@ -0,0 +1,15 @@ +// Flush +match (n) optional match (n)-[r]-() delete n,r; + +// +// Constraints +// +// FIXME: use wildcard constraint when supported +// +create constraint on (x:Person) assert x.name is unique; +create constraint on (x:Skill) assert x.name is unique; + +// Data +create (x:Person {name:'Bob', id: 'p_0', description: 'Bob is ...' }); +create (x:Skill {name:'Kung-Fu', id: 's_0', description: 'Kung-Fu is ...'}); +match (m:Person {id: 'p_0'}),(n:Skill {id: 's_0'}) create (m)-[:Knows {id: 'l_0'}]->(n); -- cgit v1.3.1