I am a Neo4j beginner and grateful for the Neo4j browser to show visualisations. I am using Neo4j 2.2 because it's the version being used in the book I'm following along with
Please help me try to understand if I have a syntax error or more specifically, if there's a gap in my understanding about how nodes are created.
I would like to achieve this:
Creating Node - Matthew
As you can see node 'Matthew' has the name overlaid on top of it. Hovering over, and you see the properties and labels. Note the property 'Name'
I used this Cypher query to create it
CREATE (matthew:MALE:STUDENT {Name:'Matthew', surname:'Cooper',age:36, country:'US'});
Creating Node - Lisa
Node Lisa has the name overlaid on it too. If you hover over you see
I used the following Cypher query
CREATE (lisa:FEMALE {name:'Lisa', surname:'Adams', age:15, country:'Canada'});
The Question
Note that the name property in the Matthew query is spelt with Sentence case ie Name
and the Lisa query is spelt in lower case name
If I create a Lisa node with sentence case, the name won't be overlaid over the top. Why is this? I would have thought they'd be the same. What's the difference between 'Name' and 'name' Are cypher query properties case-sensitive?
Here is a screenshot of executing the Lisa cypher query using the same spelling of the name and the property isn't overlaid on the node in the visualisation.
FEMALE
labels is not set properly. Click on theFEMALE
label at the top of the browser so you can set the display property for that particular label at the bottom. - Dave BennettFEMALE
node. It would then remain that way until you switched it after the fact. - Dave Bennett