Skip to content

Commit

Permalink
Temporarily continue passing explain.mode for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnchin authored Sep 18, 2024
1 parent 3d2bfd6 commit 3c8b6f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/graph_notebook/neptune/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,10 @@ def _gremlin_query_plan(self, query: str, plan_type: str, args: dict, ) -> reque
data['language'] = 'gremlin'
headers['content-type'] = 'application/json'
if plan_type == 'explain':
data['explain-mode'] = args.pop('explain.mode')
# Remove explain.mode once HTTP is changed
explain_mode = args.pop('explain.mode')
data['explain.mode'] = explain_mode
data['explain-mode'] = explain_mode
elif plan_type == 'profile':
for param, value in args.items():
data[param] = value
Expand Down

0 comments on commit 3c8b6f9

Please sign in to comment.