diff --git a/lib/neography/node.rb b/lib/neography/node.rb index 7d2106c..71f0c1e 100644 --- a/lib/neography/node.rb +++ b/lib/neography/node.rb @@ -17,6 +17,14 @@ def create(props = nil, db = Neography::Rest.new) node end + def 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 + def load(node, db = Neography::Rest.new) raise ArgumentError.new("syntax deprecated") if node.is_a?(Neography::Rest) node = node.first if node.kind_of?(Array)