Relationship properties

rdvdijk edited this page Sep 26, 2012 · 1 revision

Set

@neo.set_relationship_properties(rel1, {"weight" => 200})  # Set a relationship's properties
@neo.reset_relationship_properties(rel1, {"age" => 31})    # Reset a relationship's properties

Get

@neo.get_relationship_properties(rel1)                     # Get just the relationship properties
@neo.get_relationship_properties(rel1, ["since","met"])    # Get some of the relationship properties

Remove

@neo.remove_relationship_properties(rel1)                  # Remove all properties of a relationship
@neo.remove_relationship_properties(rel1, "since")         # Remove one property of a relationship
@neo.remove_relationship_properties(rel1, ["since","met"]) # Remove multiple properties of a relationship