chore: update GraphDBInterface to not throw NotImplementedError for count_nodes()

This commit is contained in:
Daulet Amirkhanov 2025-10-15 17:22:51 +01:00
parent 9e38a30c49
commit a854e4f426

View file

@ -161,7 +161,8 @@ class GraphDBInterface(ABC):
@abstractmethod
async def count_nodes(self) -> int:
raise NotImplementedError
logger.warning("count_nodes is not implemented")
return 1 # dummy value to not fail search()
@abstractmethod
async def query(self, query: str, params: dict) -> List[Any]: