Fix get_node error for PostgreSQL graph storage

This commit is contained in:
yangdx
2025-04-03 15:40:31 +08:00
parent b48d5e62e3
commit 3e3338a144
3 changed files with 8 additions and 4 deletions

View File

@@ -297,13 +297,13 @@ class BaseGraphStorage(StorageNameSpace, ABC):
@abstractmethod
async def get_node(self, node_id: str) -> dict[str, str] | None:
"""Get an edge by its source and target node ids."""
"""Get node by its label identifier, return only node properties"""
@abstractmethod
async def get_edge(
self, source_node_id: str, target_node_id: str
) -> dict[str, str] | None:
"""Get all edges connected to a node."""
"""Get edge properties between two nodes"""
@abstractmethod
async def get_node_edges(self, source_node_id: str) -> list[tuple[str, str]] | None: