From f59d389991d689c141e1df62188e28547c8bbb15 Mon Sep 17 00:00:00 2001 From: Pablo Fernandez Date: Thu, 29 Mar 2012 23:20:29 -0300 Subject: [PATCH] Add a batch call to get_node_relationships --- lib/neography/rest.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/neography/rest.rb b/lib/neography/rest.rb index 9f35696..955ce38 100644 --- a/lib/neography/rest.rb +++ b/lib/neography/rest.rb @@ -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