From fe57645c2648c72228f681ba9251e833034488dc Mon Sep 17 00:00:00 2001 From: Diego Gomez Date: Sun, 9 Mar 2014 12:48:26 -0500 Subject: [PATCH] add props paramenter add properties batch create unique relationships parameters --- lib/neography/rest/batch.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/neography/rest/batch.rb b/lib/neography/rest/batch.rb index aa6c069..65d7f62 100644 --- a/lib/neography/rest/batch.rb +++ b/lib/neography/rest/batch.rb @@ -158,14 +158,15 @@ def create_relationship(type, from, to, data = nil) # RelationshipIndexes - def create_unique_relationship(index, key, value, type, from, to) + def create_unique_relationship(index, key, value, type, from, to, props = nil) post RelationshipIndexes.unique_path(:index => index) do { :key => key, :value => value, :type => type, :start => build_node_uri(from), - :end => build_node_uri(to) + :end => build_node_uri(to), + :properties => props } end end