Re: Failing to store List as property value
Debasish Kanhar <d.k...@...>
Well you are adding List property to JanusGraph in wrong way. The way I do to create List properties once the schema is defined is as follows:
The following things should work, and if it doesn't let us know.
Now we have to iterate over the list elements, and add it to JanusGraphVertex v object as follows:
Or else, if you want to add manually, this should suffice:
As you can see, gremlin doesn't expect you to pass List, and it will parse that list into property. Rather it expects you to pass the list element wise, and it keeps on appending to property key which you defined as List in schema declaration. If the same wasn't declared as List in schema, then it replaces the prior value.