Method: Neography::Rest::NodeIndexes#get_or_create_unique_node
- Defined in:
- lib/neography/rest/node_indexes.rb
#get_or_create_unique_node(index, key, value, properties = {}) ⇒ Object
109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/neography/rest/node_indexes.rb', line 109 def get_or_create_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 => 'get_or_create'}, ) end |