In Gremlin, there is a query error when converting TinerGraph to JanusGraph?

118 Views Asked by At

I have a code like the one below. Since I switched TinkerGraph to JanusGraph it got an error:

Gremlin.Net System.InvalidOperationException: 'Deserializer for “janusgraph:RelationIdentifier” not found' exception

var result =
    _g.V().BothE("name").OtherV().Path().By(__.ValueMap<object, object>(true)).ToList();
1

There are 1 best solutions below

6
On

This is a common serializer error and likely related to an error on your client side. The RelationIdentifier is a JanusGraph specific class (i.e. an Edge identifier) and therefore the TinkerPop drivers don't know how to process it. Either avoid JanusGraph specific classes by not returing the Edge T.id in valueMap() or consider using janusgraph-dotnet.