Method: Neography::Node.create_unique

Defined in:
lib/neography/node.rb

.create_unique(index, key, value, props = nil, db = Neography::Rest.new) ⇒ Object

Raises:

  • (ArgumentError)


19
20
21
22
23
24
25
# File 'lib/neography/node.rb', line 19

def self.create_unique(index, key, value, props = nil, db = Neography::Rest.new)
  raise ArgumentError.new("syntax deprecated") if props.is_a?(Neography::Rest)

  node = self.new(db.create_unique_node(index, key, value, props))
  node.neo_server = db
  node
end