Originally reported here:
I found the cardinality of properties are not preserved in the subgraph
generated by Gremlin 'Subgraph Step' (i.e. subgraph('sub').cap('sub')).
To be specific, in my case, I have several property keys with 'LIST' cardinality (e.g. propertyKey: created)
so that there can be multiple properties for those keys.
(properties also have nested properties so they are not just simple duplication of the same information)
However, when I generated subgraph from this graph,
only one of the properties using the same key is copied to the corresponding vertex in the subgraph.
I think this can be fixed by explicitly using:
Currently the cardinality check is occurring by default but against the target graph and not the source graph (so you get the wrong cardinality).