Skip to content

Support typed Graphson serialization for http#778

Open
theneelshah wants to merge 1 commit into
mainfrom
graphson-support
Open

Support typed Graphson serialization for http#778
theneelshah wants to merge 1 commit into
mainfrom
graphson-support

Conversation

@theneelshah

Copy link
Copy Markdown
Collaborator

Allow graphson v3 serialization for http requests

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

query_res = query_res_http_json['result']['data']
# Handle typed GraphSON format where data is {"@type": "g:List", "@value": [...]}
if isinstance(query_res, dict) and '@type' in query_res and '@value' in query_res:
from gremlin_python.structure.io.graphsonV3d0 import GraphSONReader

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move the import to the top of the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants