Description
As described on the mailing list, the limitation for of the specification combined with the strictness of .NET generics, makes dealing with maps on the .NET GLV hard / impossible.
All methods returning a map have this issue, as in the following example:
IDictionary<string, IList<int>> result = g.V().ValueMap<IList<int>>("age").Next();
Causes an exception at runtime:
System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.Object,System.Object]' to type 'System.Collections.Generic.IDictionary`2[System.String,System.Collections.Generic.IList`2[System.Int32]]'.
We should provide conversion mechanism inside the default traversal.
Attachments
Issue Links
- links to