Create Nodes AND Releationships
CREATE
(sept:Release { name: "September 2014", date:
"2014-09-13"}),
(co:Application { name: "App1"}),
(cs:Application { name: "App2"}),
(mcs:Application { name: "App3}),
(sept)-[:INCLUDES]->(co),
(sept)-[:INCLUDES]->(cs),
(sept)-[:INCLUDES]->(mcs);
MATCH ALL APPLICATIONS INCLUDED IN A RELEASE
MATCH (release:Release)-[:INCLUDES]-(application)
RETURN release, application;
MATCH ALL RELEASES THAT INCLUDE A SPECIFIED APPLICATION
MATCH (release:Release)-[:INCLUDES]-(application)
WHERE application.name = "App1"
RETURN release, application;
No comments:
Post a Comment