-2
我想用的Neo4j和PHP例如建立一個評論樹上建一個評論樹:如何使用的Neo4j和PHP
A
|_B
...|_C
...|_D
我使用https://github.com/jadell/neo4jphp組件。它並不支持這種方法。無論如何,我不知道如何使用Cypher獲得所有樹。
我想用的Neo4j和PHP例如建立一個評論樹上建一個評論樹:如何使用的Neo4j和PHP
A
|_B
...|_C
...|_D
我使用https://github.com/jadell/neo4jphp組件。它並不支持這種方法。無論如何,我不知道如何使用Cypher獲得所有樹。
您只需在其他評論中添加註釋,就可以使用neo4jphp或neoclient執行此密碼。
MATCH (c:Comment {id:{comment_id}})
MATCH (a:Author {id:{author_id}})
CREATE (n:Comment {id:{new_comment_id}, text:{new_comment_text})
CREATE (a)-[:WROTE]->(n)
你試過了什麼?問題在哪裏?對於php組件,你可以看看這裏:https://github.com/neoxygen – 2014-11-05 18:26:31