Skip to content

Commit f66331f

Browse files
committed
Escape RoutingControl Type as only available for Neo4j > 5.0
1 parent 6ec9f39 commit f66331f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphdatascience/query_runner/query_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class QueryMode(str, Enum):
77
READ = "read"
88
WRITE = "write"
99

10-
def neo4j_routing(self) -> neo4j.RoutingControl:
10+
def neo4j_routing(self) -> "neo4j.RoutingControl":
1111
if self == QueryMode.READ:
1212
return neo4j.RoutingControl.READ
1313
elif self == QueryMode.WRITE:

0 commit comments

Comments
 (0)