[
https://issues.apache.org/jira/browse/TINKERPOP3-803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marko A. Rodriguez closed TINKERPOP3-803.
-----------------------------------------
Resolution: Fixed
Fix Version/s: 3.1.0-incubating
This has been implemented. You can now do:
{code}
g.V([1,2,3])
{code}
or
{code}
g.V([v1,v2,v3])
{code}
In short, if a single argument is provided to {{GraphStep}} that is a
{{Collection}}, that {{Collection}} is turned into a the {{ids}} of the
{{GraphStep}} via {{toArray(new Object[]...)}}. Thus, the step acts as before
except for a {{if}}-check to see if its a single collection argument. Simple,
clean.
> A better solution to g.V(someCollection.toArray())
> --------------------------------------------------
>
> Key: TINKERPOP3-803
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-803
> Project: TinkerPop 3
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.0.0-incubating
> Reporter: Marko A. Rodriguez
> Assignee: Marko A. Rodriguez
> Fix For: 3.1.0-incubating
>
>
> Many times people will have a {{List<Object>}}. In order to make those ids
> for {{V()}} they have to do {{V(list.toArray())}}. Can we do something better
> here? How about {{g.V(list)}}.
> If you provide a single argument and its a collection, then its assume that
> you want the collection unfolded and that the collection itself is not the ID
> of the vertex.
> ?? am I missing something?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)