maxdemarzi/neography — pull request #162 by pwaleczek (2014-04-14 14:16:30+00:00)
Title: Added 'Create or Fail' methods to node/relationship indexes

Added node/relationship methods:
create_or_fail_unique_... which raises an Neography::OperationFailureException when a unique key-value pair already exists in the index. Using regular create_unique_... there's no feedback whether the node/relationship has been created or retrieved.