[
https://issues.apache.org/jira/browse/TINKERPOP-2052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16634383#comment-16634383
]
stephen mallette commented on TINKERPOP-2052:
---------------------------------------------
I'm not sure what's currently available in gremlin-javascript but I don't think
we can really do exactly what you want here. We dont' really have graph
structures in Gremlin Language Variants (GLVs) - for example, if you return a
subgraph there is no {{Graph}} object to deserialize the returned data into.
Same thing for vertices/edges. That's really not the goal of GLVs. We recommend
returning more generic objects as your results - e.g. instead of {{Vertex}}
return a {{Map}} of the properties with {{project()}} step. We'll see what
[~jorgebg] has to say though....
Regarding,
> Apparently there is a side effect in select() that selecting multiple
> variables impacts.
Could you please clarify what your example is showing regarding a "side
effect"? I don't think I follow the problem...
> Adding GraphSONMapper to gremlin-javascript
> -------------------------------------------
>
> Key: TINKERPOP-2052
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2052
> Project: TinkerPop
> Issue Type: Improvement
> Components: io, javascript
> Reporter: Sam Adams
> Priority: Major
>
> Thanks [~jorgebg] for the excellent start on the GLV for javascript! Using it
> daily.
> Really need GraphSONMapper equivalent as my use cases need to retrieve and
> process graph elements and subgraphs as JSON.
> Any plans for adding this, or should I look for workarounds?
> I would imagine that we will also need this after we can submit scripts
> directly ala TINKERPOP-1959
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)