schema_counts = self.structured_query( "CALL apoc.meta.graphSample()
"CALL apoc.meta.graphSample() YIELD nodes, relationships " "RETURN nodes, [rel in relationships | {name:apoc.any.property" "(rel, 'type'), count: apoc.any.property(rel, 'count')}]" " AS relationships"
supports_structured_query
is always True for a Neo4j and the code when inserting new nodes will always check that variable and call get_schema(refresh=True)
allows_structured_queries
to be False since the Text2Cypher retrievers do have a check against it. Let me know if you want me to make a PR for making this a parameter or you think leaving it as is should be the intended behavior.