LoginSignup
2
3

More than 5 years have passed since last update.

Neo4jで使用するクエリ言語Cypherのメモ

Posted at

随時追記予定。

すべてのノード取得

MATCH (n) RETURN n
MATCH (n -[r]-> m) RETURN n,r,m;

すべてのノードとrelashonship取得

MATCH (n -[r]-> m) RETURN n,r,m;

すべてのノードとrelashonshipを削除

 MATCH (n -[r]-> m) DELETE n,r,m;
 MATCH n DELETE n;

検索

MATCH (n:{name:"value"}) RETURN n

ノードの作成

CREATE (TheMatrix:Movie {title:'The Matrix', released:1999, tagline:'Welcome to the Real World'})

//間違い・指摘などありましたらコメントいただけると幸いです。

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3