You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2017/08/01 22:57:00 UTC

[jira] [Updated] (TINKERPOP-1740) Add vertex parameter overload to to() and from()

     [ https://issues.apache.org/jira/browse/TINKERPOP-1740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marko A. Rodriguez updated TINKERPOP-1740:
------------------------------------------
    Description: 
Make it possible to do this:

{code}
a = g.V(1).next()
b = g.V(2).next()
g.V(a).addE("friend").to(b)
{code}

This will work {{withRemote()}} given that detached elements are re-attached prior to usage with {{AddEdgeStep}}.

Right now you have to do the above with the ugly {{withSideEffects}} prefix appendage.

{code}
a = g.addV().next()
b = g.addV().next()
g.withSideEffect('b',b).V(a).addE('friend').to('b')
{code}

  was:
Make it possible to do this:

{code}
a = g.V(1).next()
b = g.V(2).next()
g.V(a).addE("friend").to(b)
{code}

This will work {{withRemote()}} given that detached elements are re-attached prior to usage with {{AddEdgeStep}}.


> Add vertex parameter overload to to() and from()
> ------------------------------------------------
>
>                 Key: TINKERPOP-1740
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1740
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>            Reporter: Marko A. Rodriguez
>            Assignee: Marko A. Rodriguez
>
> Make it possible to do this:
> {code}
> a = g.V(1).next()
> b = g.V(2).next()
> g.V(a).addE("friend").to(b)
> {code}
> This will work {{withRemote()}} given that detached elements are re-attached prior to usage with {{AddEdgeStep}}.
> Right now you have to do the above with the ugly {{withSideEffects}} prefix appendage.
> {code}
> a = g.addV().next()
> b = g.addV().next()
> g.withSideEffect('b',b).V(a).addE('friend').to('b')
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)