Method: Neography::Rest::NodeIndexes#create_or_fail_unique_node
- Defined in:
- lib/neography/rest/node_indexes.rb
#create_or_fail_unique_node(index, key, value, properties = {}) ⇒ Object
123 124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/neography/rest/node_indexes.rb', line 123 def create_or_fail_unique_node(index, key, value, properties = {}) = { :body => ( { :properties => properties, :key => key, :value => value } ).to_json, :headers => json_content_type } @connection.post("/index/node/%{index}?uniqueness=%{function}" % {:index => index, :function => 'create_or_fail'}, ) end |