You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2018/10/08 18:01:00 UTC

[jira] [Created] (TINKERPOP-2059) Modulation of valueMap()

stephen mallette created TINKERPOP-2059:
-------------------------------------------

             Summary: Modulation of valueMap()
                 Key: TINKERPOP-2059
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2059
             Project: TinkerPop
          Issue Type: Improvement
          Components: process
    Affects Versions: 3.3.3
            Reporter: stephen mallette


Allow for modulation of the {{valueMap()}} step with {{by()}} and possibly {{with()}} to make it's usage more flexible and consistent. The problem presented in relation to this change is how to easily unwrap the general multi-property structure of {{valueMap()}}

{code}
g.V().has('person','name','marko').
  valueMap('name','age').
    by(unfold())
{code}

which would yield: {{[name:marko,age:29]}} rather than: {{[name:[marko],age:[29]]}}. Obviously the {{by()}} is just a map over the values in the list of values returned from properties. 

Please see the [DISCUSS|https://lists.apache.org/thread.html/91a3c980b5968c78638383dfa11f44ee14fc114ddc3d29e762e56f1f@%3Cdev.tinkerpop.apache.org%3E] thread for additional thoughts on the matter to consider.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)