Fabio R
Fabio R
JJanusGraph
Created by Fabio R on 3/1/2024 in #questions
Add a collection of values in an edge property
Hey Florian, it worked, thanks. I could see the edge with the list of values. However, I am trying now traverse this graph in a such way: 1. the edge can possible be one of the list values For instance, assuming that:
n1, n2 and n3 are nodes n1 -> n2 (edge property 'x' is ['a1', 'a2']) n1 -> n3 (edge property 'x' is ['a1', 'a'3])
I should be able to traverse like that:
g.V().has(n1....has('x', "a1").iterate().values('id') ==> n2 ==> n3
because each edges, to n2 and to n3, has inside of the list 'a1'. Otherwise if I do:
g.V().has(n1....has('x', "a2").iterate().values('id') ===> n2
I was wondering if I could work with some lambda to achieve that?
12 replies
JJanusGraph
Created by Fabio R on 3/1/2024 in #questions
Add a collection of values in an edge property
Hi @Florian Hockmann, you can find attached.
12 replies
JJanusGraph
Created by Fabio R on 3/1/2024 in #questions
Add a collection of values in an edge property
that didn't work:
gremlin> g.addE('link').from(n1).to(n2).property('color', ["att1", "att2"]).next() Property value [[att1, att2]] is of type class java.util.ArrayList is not supported
12 replies
JJanusGraph
Created by Fabio R on 3/1/2024 in #questions
Add a collection of values in an edge property
@kelvinl2816 thanks for replying. When you say a literal list, do you mean, a list in a string like:
... property('p', '[1, 2, 3]') ...
Other thing, these list attributes, on the edges, will be static, in the sense that, they will not change at all. Once the list of attributes are loaded, on each edge, when the graph is created, they will not be changed. They will be used during traverse queries.
12 replies
JJanusGraph
Created by Fabio R on 2/7/2024 in #questions
secure connection - TLS
Thanks @Florian Hockmann I will take a look the link you shared. Yes, I think you answered both cases client/engine and engine/components. I presume that's including mTLS too right?
4 replies