spmallette commented on code in PR #3458:
URL: https://github.com/apache/tinkerpop/pull/3458#discussion_r3423919261
##########
docs/src/reference/the-traversal.asciidoc:
##########
@@ -3989,6 +4026,21 @@ g.addV().property(set, null)
<7> The label value can be specified as a property only at the time a vertex
is added and if one is not specified in the addV()
<8> If you pass a `null` value for the Map this will be treated as a no-op and
the input will be returned
+The `property()` step also accepts a traversal that produces a `Map` of
key-value pairs to set as properties. The
+child traversal must be read-only - mutating steps are rejected. If the
traversal does not produce a `Map`, the result
+is rejected. Each entry in the resulting Map becomes a separate property on
the element, allowing multiple properties
+to be set in a single step.
+
+[gremlin-groovy,modern]
+----
+g.V(4).property(__.V(1).project('friendCount','createdSoftware').by(__.out('knows').count()).by(__.out('created').values('name')))
<1>
+g.V(4).valueMap('friendCount','createdSoftware')
Review Comment:
maybe better to show the whole vertex with all properties to demonstrate we
augmented an existing vertex that had properteis?
--
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]