Extend the FalkorDB QA demo (#9992)

- Description: Extend the FalkorDB QA demo
  - Tag maintainer: @baskaryan
This commit is contained in:
Guy Korland
2023-08-30 17:13:18 +03:00
committed by GitHub
parent 588237ef30
commit 24c0b01c38
2 changed files with 149 additions and 25 deletions

View File

@@ -52,9 +52,9 @@ class FalkorDBGraph:
def refresh_schema(self) -> None:
"""Refreshes the schema of the FalkorDB database"""
self.schema = (
f"Node properties: {node_properties_query}\n"
f"Relationships properties: {rel_properties_query}\n"
f"Relationships: {rel_query}\n"
f"Node properties: {self.query(node_properties_query)}\n"
f"Relationships properties: {self.query(rel_properties_query)}\n"
f"Relationships: {self.query(rel_query)}\n"
)
def query(self, query: str, params: dict = {}) -> List[Dict[str, Any]]: