tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marko A. Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TINKERPOP-1740) Add vertex parameter overload to to() and from()
Date Tue, 01 Aug 2017 22:57:00 GMT

     [ 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)

Mime
View raw message