--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/31dd6554-e0c4-45b7-93e7-21d97ea31bc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CABed_4pd-xH0zrQ9JXYmDGC4v5M3LdCBqfr%2Bkd2Gj0nQy%3DJ2iA%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/31dd6554-e0c4-45b7-93e7-21d97ea31bc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Robert Dale
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
You might be on a different version, using 3.2 here:g.V().has(label,'part').has('name', 'P100').as('a').V().has(label,'part').has('name','P200')..addE('has_part').to('a').iterate()
On Tue, Aug 16, 2016 at 5:03 PM, Cecil New <ceci...@gmail.com> wrote:
I will be using the REST API, so I will not be able to create variables and add edges the Gremlin console way since REST will be stateless (and sessionless)... right?I have vertices created for parts and I can find them by 'name'::> g.V().has(label,'part').has('name', 'P100')==> v[16488]:> g.V().has(label,'part').has('name', 'P200')==> v[65720]I want to create an edge, say 'has_part' between them. This doesn't work::> g.V().has(label,'part').has('name', 'P100').as('a') // first part.has(label,'part').has('name','P200').as('b') // second part.addEdge('has_part',a) // connect them... fails.The examples in the documentation show adding edges when the vertices can be traversed by other edges. This isn't true for me. I have a set of parts and now I need to connect them, knowing only their name property.At the moment I am using the Go driver if that makes a difference.Thanks for the help!
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/31dd6554-e0c4-45b7-93e7-21d97ea31bc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Robert Dale
You might be on a different version, using 3.2 here:g.V().has(label,'part').has('name', 'P100').as('a').V().has(label,'part').has('name','P200')..addE('has_part').to('a').iterate()
On Tue, Aug 16, 2016 at 5:03 PM, Cecil New <ceci...@gmail.com> wrote:
I will be using the REST API, so I will not be able to create variables and add edges the Gremlin console way since REST will be stateless (and sessionless)... right?I have vertices created for parts and I can find them by 'name'::> g.V().has(label,'part').has('name', 'P100')==> v[16488]:> g.V().has(label,'part').has('name', 'P200')==> v[65720]I want to create an edge, say 'has_part' between them. This doesn't work::> g.V().has(label,'part').has('name', 'P100').as('a') // first part.has(label,'part').has('name','P200').as('b') // second part.addEdge('has_part',a) // connect them... fails.The examples in the documentation show adding edges when the vertices can be traversed by other edges. This isn't true for me. I have a set of parts and now I need to connect them, knowing only their name property.At the moment I am using the Go driver if that makes a difference.Thanks for the help!
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/31dd6554-e0c4-45b7-93e7-21d97ea31bc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Robert Dale