Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-13-2020 01:12 PM
Hello
So i have a simple cypher query that returns the below graph image. However, the graph at some locations contains NO node labels and in other locations DOES contain node labels.
I recall that there is a cypher query statement that can be implemented to force all node labels to show in the graph? I was wondering if someone could assist me with this query.
07-13-2020 07:54 PM
Not aware of a Cypher query for this, but you can pick the right property to show for the labels that do not have a value displayed from the browser/Neo4j desktop browser
07-14-2020 11:56 AM
There are a few things that could be happening here, but to be more precise, we'll need the Cypher query you're running.
name
property of that node.The nodes which have no text have no value to display. It's that simple.
CREATE (a:Example {name:'this', name2: 'that'})
Click the Label at the top
And then chose a property at the bottom:
If you delete that property...
The only way to do that reliably, without mutating your data, is with virtual nodes.
https://neo4j.com/docs/labs/apoc/current/virtual/
That's a deep rabbit-hole, so I'm not going into it.
The other thing you can do is just create a new property, and set it to the string of your labels...
MATCH (a)
SET a :Ex2
SET a.nameLabel = REDUCE(res = "", x in labels(a) | x + ", " + res)
RETURN a
All the sessions of the conference are now available online