JohnAllen
JohnAllen
Explore posts from servers
ATApache TinkerPop
Created by JohnAllen on 8/25/2023 in #questions
adding edges to multiple vertices at once
@spmallette thanks I will try that when I get back from vacation. Will be interesting to see the executionProfile as execution time is a real concern for this query. Will update regardless
7 replies
ATApache TinkerPop
Created by JohnAllen on 8/25/2023 in #questions
adding edges to multiple vertices at once
Thanks for the reply. In MS’s Cosmos implementation of tinkerpop we can use .property(“id”,X) to set the id of the vertex to X. g.V(X) will return the vertex I expect. g.V(X,Y) returns two vertices… So I should be able to do what I am trying to do. Can’t work this out.. I think it’s something to do with MS’s janky tinkerpop version
7 replies
ATApache TinkerPop
Created by JohnAllen on 8/25/2023 in #questions
adding edges to multiple vertices at once
To give a little more insight into what I am trying to do. Let’s say we have a db g.addV(“user”).property(“name”,”one”).property(“id“,”1”) g.addV(“user”).property(“name”,”two”).property(“id“,”2”) g.addV(“job”).property(“name”,”three”).property(“id“,”3”) What I want to do is add user one and two to the job like this g.V(“1”,”2”).addE(“works_at).to(__.V(“3”)) But it doesn’t seem to work
7 replies