Hi,
If I issue in my TinkerGraph, Gremlin 3.3.1: graph.features() I see UniformListValues: true for both Vertices and Edges
The way I understand this, is I can create lists as node or edge property/
This works:
g.V(171).property(set,'ff',2)
g.V(171).property(set,'ff',3)
['Vertex:',
{'id': 171, 'label': 'object1', 'properties': {'ff': [2, 3], 'name': 2}}]
This:
g.E(178L).property(set,'ff',2)
gives me an error:
('g', 'org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerEdge cannot be cast to org.apache.tinkerpop.gremlin.structure.Vertex')
/**
* Supports setting of a {@code List} value. The assumption is that the {@code List} can contain
* arbitrary serializable values that may or may not be defined as a feature itself. As this
* {@code List} is "uniform" it must contain objects of the same type.
*
* @see #supportsMixedListValues()
*/
@FeatureDescriptor(name = FEATURE_UNIFORM_LIST_VALUES)
public default boolean supportsUniformListValues() {
return true;
}
}
What am I missing?
Thanks!