fix: Handle [] node_name case

This commit is contained in:
Igor Ilic 2025-08-29 13:03:06 +02:00
parent 21f688385b
commit e6ee182d78

View file

@ -76,7 +76,7 @@ class CogneeGraph(CogneeAbstractGraph):
start_time = time.time()
# Determine projection strategy
if node_type is not None and node_name is not None:
if node_type is not None and node_name not in [None, []]:
nodes_data, edges_data = await adapter.get_nodeset_subgraph(
node_type=node_type, node_name=node_name
)