Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2059

Modulation of valueMap()

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.3
    • Fix Version/s: 3.4.0
    • Component/s: process
    • Labels:

      Description

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

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

      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 thread for additional thoughts on the matter to consider.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              dkuppitz Daniel Kuppitz
              Reporter:
              spmallette Stephen Mallette

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment