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