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:Jump to solution
array is used to work with properties whose cardinality
list
or set
gremlin> g.addV('test').property(list,'a','1').property(list,'a','2')
==>v[13]
gremlin> g.V(13).valueMap()
==>[a:[1,2]]
...3 Replies
Solution
array is used to work with properties whose cardinality
list
or set
gremlin> g.addV('test').property(list,'a','1').property(list,'a','2')
==>v[13]
gremlin> g.V(13).valueMap()
==>[a:[1,2]]
Thanks, so does this mean that the response doesn't contains information of the cardinality, so that the client library can't intelligently parse it?
I already asked similar question
https://discord.com/channels/838910279550238720/1161370604335796295