Skip to content

Commit

Permalink
add props paramenter
Browse files Browse the repository at this point in the history
add properties batch create unique relationships parameters
  • Loading branch information
degzcs committed Mar 9, 2014
1 parent c77c38f commit fe57645
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/neography/rest/batch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe57645

Please sign in to comment.