def test_14_structured_query(neo4j_store):
    """
    Test running a custom Cypher query via structured_query.
    """
    # Insert data
    e1 = EntityNode(label="PERSON", name="Alice")
    neo4j_store.upsert_nodes([e1])

    # Custom query
    query = """
    MATCH (n) WHERE n.name = $name
    RETURN n.name AS node_name, labels(n) AS node_labels
    """
    result = neo4j_store.structured_query(query, {"name": "Alice"})
    assert len(result) == 1
    assert result[0]["node_name"] == "Alice"
    assert "PERSON" in result[0]["node_labels"]

    Test running a custom Cypher query via structured_query.
    
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/tests/test_pg_stores_neo4j.py