41memdb.mql 685 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. alter class /test/cypher with core=cassandraonly;
  2. update /test/cypher set person_to_master=null where id='cypher:e1'
  3. /**
  4. onerror(continue,"not exist")
  5. **/
  6. ;
  7. select * from /test/cypher
  8. /**
  9. output()
  10. **/
  11. ;
  12. drop edge type test.person_to_master;
  13. select * from /test/cypher
  14. /**
  15. output()
  16. **/
  17. ;
  18. alter class /test/cypher with core=memory;
  19. select * from /test/cypher/**output()**/;
  20. -- wait for memdb load data
  21. /**
  22. sleep(1s)
  23. **/
  24. ;
  25. create edge type test.person_to_master "教师指导研究生"
  26. ;
  27. create ('cypher:e1') - [:person_to_master] -> ('cypher2:e2');
  28. match ('cypher:e1') - [:person_to_master] -> ('cypher2:e2')
  29. /**
  30. output()
  31. match("graph.edges.len",1,"graph.nodes.len",2)
  32. **/
  33. ;