Skip to content

Commit

Permalink
Add a batch call to get_node_relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
pablof7z committed Mar 30, 2012
1 parent 42346ad commit f59d389
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/neography/rest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ def get_batch(args)
{:method => "GET", :to => "/index/node/#{args[1]}/#{args[2]}/#{args[3]}"}
when :get_relationship_index
{:method => "GET", :to => "/index/relationship/#{args[1]}/#{args[2]}/#{args[3]}"}
when :get_node_relationships
{:method => "GET", :to => "/node/#{get_id(args[1])}/relationships/#{args[2]}"}
else
raise "Unknown option #{args[0]}"
end
Expand Down

0 comments on commit f59d389

Please sign in to comment.