Returned vertex properties (JS client)
Hi, I've got a question regarding the returned vertex value when using the JS client. How come non-array properties are parsed & returned as an array of length 1, as seen in the example below? Thank you.
Solution
array is used to work with properties whose cardinality
list or setgremlin> g.addV('test').property(list,'a','1').property(list,'a','2')
==>v[13]
gremlin> g.V(13).valueMap()
==>[a:[1,2]]