Re: set (ArrayList) property as JSON string


Adam Holley <holl...@...>
 

FYI, Solr support for LIST and SET cardinality should be in 0.2.0


On Thursday, July 6, 2017 at 4:38:40 PM UTC-5, Kelvin Lawrence wrote:
Are you using Solr as your index by chance?

Kelvin

On Thursday, July 6, 2017 at 10:05:37 AM UTC-5, Eser Kandogan wrote:
Hi,

In 3.2.4 I used to be able to set a property with a value of ArrayList, 

for example:
g.V(1234).property('followers',inE('follows').outV().valueMap('name','age').fold())

but it seems I can't do it on Janus graph. It gives me an error:
Property value... is of type class java.util.ArrayList is not supported.

I tried to set it as JSON string:
g.V(1234).property('followers',JsonOutput.toJson(inE('follows').outV().valueMap('name','age').fold()))

it sets it to [].

How can I set a property as JSONized ArrayList? Thanks.

Eser Kandogan

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.