Skip to content

Syntax checker does not like type() #148

@specter-flq

Description

@specter-flq

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.

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