Using Amazon Neptune as a GraphDB, I'm trying to update a property of some of the vertex to include a list of values. The basic gremlin example from this guide:
// Add a list as a property value
g.V().has('code','AUS').property('places',out().values('code').fold())
Is failing with:
{
"requestId": "XXX",
"detailedMessage": "Unsupported property value type: java.util.ArrayList",
"code": "UnsupportedOperationException"
}
I tried also to add the list modifier
g.V().has('code','AUS').property(list, 'places',out().values('code').fold())
is failing with:
{
"requestId": "XXX",
"detailedMessage": "list cardinality for vertex property is not supported",
"code": "UnsupportedOperationException"
}
If for some reason the python-gremlin or Amazon Neptune flavors don't support array or list as a property value, I can settle for a single value that will concatenate the values into a single string. I tried using various options:
g.V().has('code','AUS').property('places',out().values('code').fold(0) {a,b -> a + b.length()})
or
g.V().has('code','AUS').property('places',out().values('code')map {join(",",it.get().value('code'))})
but none is working.