Skip to content

Commit d1eda2b

Browse files
added database
1 parent 1c302cb commit d1eda2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/graph_query.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def get_completed_documents(driver):
181181
return documents
182182

183183

184-
def get_graph_results(uri, username, password,document_names):
184+
def get_graph_results(uri, username, password,database,document_names):
185185
"""
186186
Retrieves graph data by executing a specified Cypher query using credentials and parameters provided.
187187
Processes the results to extract nodes and relationships and packages them in a structured output.
@@ -198,7 +198,7 @@ def get_graph_results(uri, username, password,document_names):
198198
"""
199199
try:
200200
logging.info(f"Starting graph query process")
201-
driver = get_graphDB_driver(uri, username, password)
201+
driver = get_graphDB_driver(uri, username, password,database)
202202
document_names= list(map(str.strip, json.loads(document_names)))
203203
query = GRAPH_QUERY.format(graph_chunk_limit=GRAPH_CHUNK_LIMIT)
204204
records, summary , keys = execute_query(driver, query.strip(), document_names)

0 commit comments

Comments
 (0)