xiazcy commented on code in PR #2205: URL: https://github.com/apache/tinkerpop/pull/2205#discussion_r1327581743
########## docs/src/reference/the-traversal.asciidoc: ########## @@ -1991,6 +2009,22 @@ g.V(1).properties().label() link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#label--++[`label()`] +[[length-step]] +=== Length Step + +The `length()`-step (*map*) returns the length incoming string traverser. Null values are not processed and remain as null when returned. Review Comment: An `IllegalArgumentException` will be thrown (now added in the docs) ########## docs/src/reference/the-traversal.asciidoc: ########## @@ -4243,6 +4277,37 @@ link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gre link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#toV-org.apache.tinkerpop.gremlin.structure.Direction-++[`toV(Direction)`], link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/structure/Direction.html++[`Direction`] +[[toLower-step]] +=== ToLower Step + +The `toLower()`-step (*map*) returns the lower representation of incoming string traverser. Null values are not processed and remain as null when returned. + +[gremlin-groovy,modern] +---- +g.inject("HELLO", "wORlD", null).toLower() +---- + +*Additional References* + +link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#toLower--++[`toLower()`] + +[[toUpper-step]] +=== ToUpper Step + +The `toUpper()`-step (*map*) returns the upper representation of incoming string traverser. Null values are not processed and remain as null when returned. + +[gremlin-groovy,modern] +---- +g.inject("hello", "wORlD", null).toUpper() +g.V().values("name").toUpper() <1> +---- + +<1> Returns the upper case representation of all vertex names. + +*Additional References* + +link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#toLower--++[`toLower()`] Review Comment: Fixed ########## docs/src/upgrade/release-3.7.x.asciidoc: ########## @@ -29,7 +29,10 @@ complete list of all the modifications that are part of this release. === Upgrading for Users +==== String Manipulation Steps Review Comment: Updated -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
