0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

neo4jでsandbox その2

Last updated at Posted at 2020-10-01

概要

neo4jでsandboxやってみた。
練習問題、やってみた。

このアニメの出演者を表示する。

MATCH (n:Anime {name:"ワイルド7"})-[r:ROLE]->(m:Actor)
RETURN n, m

image.png

このアニメの出演者の他の出演作品を表示する。

MATCH (n:Anime {name:"ワイルド7"})-[r:ROLE]->(m:Actor)<-[d:ROLE]->(s:Anime)
RETURN n, m, s

image.png

全てのnodeとrelashonshipを削除する。

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

以上。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?