Skip to content
Advertisement

How do i use GraphSON v2 instead of v3?

i am trying to run a piece of code in python which uses Cosmos DB from Microsoft Azure. I am currently using gremlinpython 3.2.6 and the latest version of Cosmos (default on microsoft azure) but there seems to be some compatibility issues between the two.

When i run my code i get the following error;

JavaScript

I have read that I should try using GraphSON v2 instead of V3 but don’t know how, can anyone help?

Advertisement

Answer

welcome to this community. You just need to ensure that you use the schema of the GraphSON v2, since it is the version supported in Azure Cosmos DB. Check the json you are using and ensure that follows the supported schema. You have some examples in this link.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement