AGEStorage: all queries as multiline strings for consistency
This commit is contained in:
parent
05c73bcfd1
commit
25d6939ca3
1 changed files with 3 additions and 1 deletions
|
|
@ -384,7 +384,9 @@ class AGEStorage(BaseGraphStorage):
|
|||
|
||||
async def get_node(self, node_id: str) -> Union[dict, None]:
|
||||
entity_name_label = node_id.strip('"')
|
||||
query = "MATCH (n:`{label}`) RETURN n"
|
||||
query = """
|
||||
MATCH (n:`{label}`) RETURN n
|
||||
"""
|
||||
params = {"label": AGEStorage._encode_graph_label(entity_name_label)}
|
||||
record = await self._query(query, **params)
|
||||
if record:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue