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

Add format() step

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.4
    • 3.7.1
    • process
    • None

    Description

      Provide for a format() step which will handle result formatting to string values. This change will help resolve the need for string concatenation functions while providing a lot of flexibility to how results can be formed:

      gremlin> g.V().hasLabel('person').format("%{n} is %{a} years old.").by('n',
      'name').by('a', 'age')
      ==>marko is 29 years old.
      ==>vadas is 27 years old.
      ==>josh is 32 years old.
      ==>peter is 35 years old.
      gremlin> g.V().hasLabel('person').format("%{name} is %{age} years old.")
      ==>marko is 29 years old.
      ==>vadas is 27 years old.
      ==>josh is 32 years old.
      ==>peter is 35 years old.
      

      Attachments

        Issue Links

          Activity

            People

              valentyn Valentyn Kahamlyk
              spmallette Stephen Mallette
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: