diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-16 17:14:32 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-16 17:14:32 +0200 |
| commit | c7d026b1d504323a8c61d51b726e5e8d2337fc4b (patch) | |
| tree | 75607d07c90beb8024e34afd2bab3503dcaccda4 /res/neo4j | |
| parent | dff765d765085fe2ee172abc606f4f8b25a39c27 (diff) | |
| parent | 38078c537f642806e4849dc99c07d679f816fe23 (diff) | |
Merging rhizi-server into rhizi, back to a single repo
Merge remote-tracking branch 'old-server/master' into wip/map-nodes-by-id_minimize-name-use
Diffstat (limited to 'res/neo4j')
| -rw-r--r-- | res/neo4j/reset-db__single_link.cypher | 15 |
1 files changed, 15 insertions, 0 deletions
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); |
