Closed NudistBeaaach closed 1 year ago
I don't understand the question 😅 if you mean getting the relationship type you can use function
instead of static like so
{
//... Advance config
function: {
label: rel => rel.type // if Im correct on the raw rel from neo4j that how we get the rel type
}
}
Yeah I mean, actually my relationships fields looks like this:
"relationships": {
"works_with": {
[NeoVis.NEOVIS_ADVANCED_CONFIG]: {
"static": {
"label": "works with",
}
}
},
And I'm forced to define a new static label for each relationship (i.e works_with) but I would know how to get each relationship has the label I set during the query. In your response you mean ? :
{
relationships:{
[ NeoVis.NEOVIS_ADVANCED_CONFIG]: {
function: {
label: rel => rel.type
}
}
}
}
Nope, I mean
{
relationships: {
[NeoVis.NEOVIS_DEFAULT_CONFIG]: {
[NeoVis.NEOVIS_ADVANCED_CONFIG]: {
function: {
label: rel => rel.type
}
}
}
}
Thx you very much!
Hello after the 2.0 it is possible to use
to specify a static edge name, but how can you get neovis.js in this new version to use the label set during the relationship declaration plz ?