Skip to content

Commit

Permalink
add get relationship start node and relationship end node.
Browse files Browse the repository at this point in the history
  • Loading branch information
sundbp authored and maxdemarzi committed Nov 11, 2011
1 parent 09e8d50 commit f48cfc7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/neography/rest.rb
Expand Up @@ -176,6 +176,14 @@ def get_relationship(id)
get("/relationship/#{get_id(id)}")
end

def get_relationship_start_node(rel)
get_node(rel["start"])
end

def get_relationship_end_node(rel)
get_node(rel["end"])
end

def reset_relationship_properties(id, properties)
options = { :body => properties.to_json, :headers => {'Content-Type' => 'application/json'} }
put("/relationship/#{get_id(id)}/properties", options)
Expand Down

0 comments on commit f48cfc7

Please sign in to comment.