cypher-editor icon indicating copy to clipboard operation
cypher-editor copied to clipboard

Syntax checker does not like type()

Open specter-flq opened this issue 1 year ago • 0 comments

Description

The query with type() in the screenshot runs perfectly fine in Neo4j browser and an editor implementation, but the syntax checker does not like it in the editor:

Screenshot of query running in Neo4J browser:

Screenshot 2024-08-16 at 11 35 10 AM

Screenshots of syntax error in demo provided in your package (Also happens in our implementation of the editor):

Screenshot 2024-08-16 at 12 54 06 PM Screenshot 2024-08-16 at 12 54 16 PM

Reproduce Steps

Enter the following query in the editor:

MATCH (a)-[r]->(b)
WHERE type(r) = 'FRIENDS_WITH'
RETURN a,b

A syntax error will appear in the type(r) function.

Expected Behavior

For a syntax error not to appear.

Current Behavior

A syntax error is shown (refer to screenshots above) even though the query runs perfectly fine.

specter-flq avatar Aug 16 '24 16:08 specter-flq