spmallette commented on a change in pull request #1533:
URL: https://github.com/apache/tinkerpop/pull/1533#discussion_r773425172



##########
File path: docs/src/reference/the-traversal.asciidoc
##########
@@ -598,15 +598,22 @@ previous step to enable vertex and edge creation with all 
its properties in one
 ----
 g.V(1).property('country','usa')
 g.V(1).property('city','santa fe').property('state','new mexico').valueMap()
-g.V(1).property(list,'age',35)  <1>
+g.V(1).property(['city': 'santa fe', 'state': 'new mexico'])  <1>
+g.V(1).property(list,'age',35)  <2>
+g.V(1).property(list, ['city': 'santa fe', 'state': 'new mexico'])  <3>
 g.V(1).valueMap()
-g.V(1).property('friendWeight',outE('knows').values('weight').sum(),'acl','private')
 <2>
-g.V(1).properties('friendWeight').valueMap() <3>
-----
-
-<1> For vertices, a cardinality can be provided for <<vertex-properties,vertex 
properties>>.
-<2> It is possible to select the property value (as well as key) via a 
traversal.
-<3> For vertices, the `property()`-step can add meta-properties.
+g.V(1).property('friendWeight',outE('knows').values('weight').sum(),'acl','private')
 <4>
+g.V(1).properties('friendWeight').valueMap() <5>
+g.addV().property(T.label,'person').valueMap().with(WithOptions.tokens) <6>
+----
+
+<1> Properties can also take a Map as an argument.
+<2> For vertices, a cardinality can be provided for <<vertex-properties,vertex 
properties>>.
+<3> If a cardinality is specified for a Map then that cardinality will be used 
for all properties in the map.  If you need different cardinalities per 
property then you should individually add the property values.
+<4> It is possible to select the property value (as well as key) via a 
traversal.
+<5> For vertices, the `property()`-step can add meta-properties.
+<5> 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()
+<5> If passing in a map the token T.label must be surrounded by parenthesis 
when using Groovy

Review comment:
       good addition to the docs, though is your numbering right there (i.e. 
three "5" in a row)? i think that this change should also include some simple 
Upgrade Documentation.




-- 
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]


Reply via email to