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

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.3
    • 3.4.0
    • process

    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dkuppitz Daniel Kuppitz
            spmallette Stephen Mallette
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment