Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CREATE CONSTRAINT is not supported #73

Open
artemgur opened this issue Apr 12, 2023 · 1 comment
Open

CREATE CONSTRAINT is not supported #73

artemgur opened this issue Apr 12, 2023 · 1 comment

Comments

@artemgur
Copy link

1. CREATE CONSTRAINT queries are highlighted as errors.

Example of query:
CREATE CONSTRAINT FOR (user:User) REQUIRE user.id IS UNIQUE;
Error message:
<any cypher option>, <create index>, <delete>, <reading clause>, BEGIN, CALL, COMMIT, CREATE, DROP, FOREACH, MERGE, REMOVE, RETURN, SET or WITH expected, got 'CREATE'
Screenshot:
image

2. When I try to execute CREATE CONSTRAINT queries, an error is shown

Query is the same as before.
Error text:
Error occurred: Cypher query text should not be an empty string
Screenshot:
image
Error details (unfortunately only as screenshot, because the text in "Error details" window can't be copied):
image

@HazWellCeros
Copy link

Completely agrees. I often use constraint to build my schemas. I'll try to fix it. What you think @albertoventurini ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants