-
labels:
{
ID: {
label: "name",
identifier: "ID",
[NeoVis.NEOVIS_ADVANCED_CONFIG]: {
static: {
color: "#97c2fc",
shape: "dot",
size: 5,
},
function: {
size: (node) => {
return // how to access node.reletioships so that I can count the properties.visits.length like below?
}
},
},
},
},
relationships: {
TRAFFIC: {
[NeoVis.NEOVIS_ADVANCED_CONFIG]: {
static: {
width:1,
},
function: {
width: (node) => {
return node.properties.visits.length;
}
},
},
},
}, |
Beta Was this translation helpful? Give feedback.
Answered by
ra-haik
May 17, 2023
Replies: 1 comment 29 replies
-
You should do it in the cypher as neo4j doesn't return a way to get to the relationships in the object I didn't touch cypher in a long time so need to search how I did it back than |
Beta Was this translation helpful? Give feedback.
29 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much for your help, here is the code that is working.