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.

IFA example in training

I can't follow the example with the 3 nodes and 3 relationships. What is the result for n.id? Is the answer n = 1 for id = 6? If so then I think I get it. Was I suppose to learn cypher before I started the training? I thought that I would pick up cypher in the Neo4j training.

2 REPLIES 2

HI @stephen

This is the example with the 3 nodes and 3 relationships.

CREATE (n:SomeNode)-[:REL]->(:SomeNode)-[:REL]->(:SomeNode)-[:REL]->(n)

What is the result for n.id? Is the answer n = 1 for id = 6?

I think "n = 1 and id for nodes = 3" is correct.
You can see two counts in the red circle on the left.
First count is 3 for Nodes.
Next count is 3 for Relationships.
I used id(n) instead of n.id, is that the correct way to handle the question?

Thank you Koji, it make a little more sense now.