|
@@ -0,0 +1,46 @@
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+match (a:"cypher1.notexist1")-[:connect]->(b:"cypher2:e2")
|
|
|
|
|
+return a.class,a.id, b.class,b.id
|
|
|
|
|
+/**
|
|
|
|
|
+output()
|
|
|
|
|
+count(0)
|
|
|
|
|
+**/
|
|
|
|
|
+;
|
|
|
|
|
+
|
|
|
|
|
+match (a:/test/)-[:connect]->(b:"cypher2:e2")
|
|
|
|
|
+return a.class,a.id, b.class,b.id
|
|
|
|
|
+/**
|
|
|
|
|
+output()
|
|
|
|
|
+count(3)
|
|
|
|
|
+**/
|
|
|
|
|
+;
|
|
|
|
|
+
|
|
|
|
|
+match (a:/test/)-[:connect]->(b:"cypher2:e2")
|
|
|
|
|
+return a.class,a.id, b.class,b.id
|
|
|
|
|
+where a.id='cypher4:e4' or a.id in ('cypher3:e3')
|
|
|
|
|
+/**
|
|
|
|
|
+output()
|
|
|
|
|
+count(2)
|
|
|
|
|
+**/
|
|
|
|
|
+;
|
|
|
|
|
+
|
|
|
|
|
+match (a:/test/)-[:connect]->(b:"cypher2:e2")
|
|
|
|
|
+return a.class,a.id, b.class,b.id
|
|
|
|
|
+where a.id in ('cypher3:e3','cypher4:e4')
|
|
|
|
|
+/**
|
|
|
|
|
+output()
|
|
|
|
|
+count(2)
|
|
|
|
|
+**/
|
|
|
|
|
+;
|
|
|
|
|
+
|
|
|
|
|
+match (a:/test/)-[:connect]->(b:"cypher2:e2")
|
|
|
|
|
+return a.class,a.id, b.class,b.id
|
|
|
|
|
+where a.id in ['cypher3:e3','cypher4:e4']
|
|
|
|
|
+/**
|
|
|
|
|
+output()
|
|
|
|
|
+count(2)
|
|
|
|
|
+**/
|
|
|
|
|
+;
|
|
|
|
|
+
|
|
|
|
|
+
|