def test_02_upsert_and_get(neo4j_graph_store: Neo4jGraphStore):
    """
    Test inserting triplets and retrieving them.
    """
    # Insert a simple triplet: Alice -> LIKES -> IceCream
    neo4j_graph_store.upsert_triplet("Alice", "LIKES", "IceCream")

    # Retrieve edges from 'Alice'
    results = neo4j_graph_store.get("Alice")
    assert len(results) == 1
    rel_type, obj = results[0]
    assert rel_type == "LIKES"
    assert obj == "IceCream"

    Test inserting triplets and retrieving them.
    
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/tests/test_graph_stores_neo4j.py