diff --git a/README.rdoc b/README.rdoc index 96a7c0d..864d762 100644 --- a/README.rdoc +++ b/README.rdoc @@ -191,6 +191,8 @@ To Use: [:set_node_property, node2, {"name" => "Jerry"}] # Sets the property of two nodes @neo.batch [:create_unique_node, index_name, key, value, {"age" => 33, "name" => "Max"}] # Creates a unique node + @neo.batch [:get_node_relationships, node1, "out", + [:get_node_relationships, node2, "out"] # Get node relationships in a batch @neo.batch [:get_relationship, rel1], [:get_relationship, rel2] # Gets two relationships in a batch @neo.batch [:create_relationship, "friends", 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