Skip to content

Implement constraint checker when data is present in a graph #2

Description

@jmsuhy

Currently, we can add new constraints to a blank database. We want to implement the checking logic to verify that there is not data that violates a constraint being added before adding the constraint.

For example - if the sample movie graph is created and the there are duplicates Movie nodes, then we want the following constraint to give an error indicating there is currently data that will violate the constraint.

CREATE CONSTRAINT movie_unique_title IF NOT EXISTS FOR (movie:Movie) REQUIRE movie.title IS UNIQUE

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions