Interface Constraint.ConstraintsForNodes
- All Superinterfaces:
Constraint.CommonConstraints
- Enclosing class:
- Constraint
Allows to specify the type of the constraint.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a key constraint for the given propertyCreates a unique constraint for the given propertyMethods inherited from interface ac.simons.neo4j.migrations.core.catalog.Constraint.CommonConstraints
exists
-
Method Details
-
unique
Creates a unique constraint for the given property- Parameters:
properties
- the property that should be unique- Returns:
- the new constraint
-
key
Creates a key constraint for the given property- Parameters:
properties
- the property that should be part of the key- Returns:
- the new constraint
-