We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mirror_to_nxcg
1 parent 4436b50 commit 5f1c902Copy full SHA for 5f1c902
nx_arangodb/classes/function.py
@@ -940,7 +940,12 @@ def mirror_to_nxcg(func):
940
def wrapper(self, *args, **kwargs):
941
result = func(self, *args, **kwargs)
942
if self.mirror_crud_to_nxcg and self.nxcg_graph is not None:
943
- getattr(self.nxcg_graph, func.__name__)(*args, **kwargs)
+ if "_override" not in func.__name__:
944
+ m = f"Function '{func.__name__}' is not an override function."
945
+ raise ValueError(m)
946
+
947
+ func_name = func.__name__.replace("_override", "")
948
+ getattr(self.nxcg_graph, func_name)(*args, **kwargs)
949
return result
950
951
return wrapper
0 commit comments