The `py2neo.Graph.create_unique` method is a function in the Python library `py2neo` that creates a unique node or relationship in a Neo4j graph database. This method ensures that only one node or relationship with the specified properties exists in the database, preventing duplicates. If a matching node or relationship is found, it is returned. Otherwise, a new node or relationship is created and returned.
Python Graph.create_unique - 41 examples found. These are the top rated real world Python examples of py2neo.Graph.create_unique extracted from open source projects. You can rate examples to help us improve the quality of examples.