cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Return all nodes and relationships directly after creating nodes/relationships?

hello 😉

i'm new to Neo4j, currently i made a graph database based on it.
i created all nodes and relationships in my database,
and all of them could be seen after calling "MATCH (n) RETURN n"
but i don't know how to return all of them directly after creating nodes and relationships (all in one code i mean)

here is part of my code, i made several like this:

CREATE
(712 :composed_skill {name:'pick_n_place'}) ,
(700 :secondary_skill {name:'ready'}) ,
(701 :atomic_skill {name:'arm_ready'}) ,
(702 :atomic_skill {name:'hand_open'}) ,
(704 :secondary_skill {name:'object_grasp'}) ,
(707 :atomic_skill {name:'arm_move_option',option1:'arm_go_to_pose_goal',option2:'arm_go_to_joint_goal',comment:'pre-grasp approach'}) ,
(708 :atomic_skill {name:'shift_pose_target',comment:'grasp_pose'}) ,
(709 :atomic_skill {name:'hand_measure_grasp'}) ,
(711 :atomic_skill {name:'arm_go_to_pose_goal',comment:'back to pre-grasp approach'}) ,
(716 :atomic_skill {name:'arm_move_option',option1:'arm_go_to_pose_goal',option2:'arm_go_to_joint_goal',comment:'pre-place approach'}) ,
(717 :atomic_skill {name:'shift_pose_target',comment:'place_pose'}) ,
(718 :atomic_skill {name:'hand_open',comment:'place_approach_pose'}) ,
(721 :atomic_skill {name:'arm_ready'}) ,
(722 :secondary_skill {name:'object_place'}) ,
(723 :atomic_skill {name:'shift_pose_target',comment:'back to pre-place approach'}) ,
(700)-[:chain_start ]->(701),
(701)-[:next ]->(702),
(702)-[:chain_end ]->(700),
(700)-[:next ]->(704),
(704)-[:chain_start ]->(707),
(707)-[:next ]->(708),
(708)-[:next ]->(709),
(709)-[:next ]->(711),
(711)-[:chain_end ]->(704),
(716)-[:next ]->(717),
(717)-[:next ]->(718),
(722)-[:chain_start ]->(716),
(722)-[:next ]->(721),
(704)-[:next ]->(722),
(721)-[:chain_end ]->(712),
(712)-[:chain_start ]->(700),
(718)-[:next ]->(723),
(723)-[:chain_end ]->(722)

thank you very much in advance~

1 REPLY 1

ah i got it!
just "RETURN *"