neueda / jetbrains-plugin-graph-database-support

Graph Databases support for JetBrains family IDEs.
Apache License 2.0
221 stars 56 forks source link

Semantically analyze Cypher queries #7

Closed FylmTM closed 7 years ago

FylmTM commented 8 years ago

Original issues:

Neueda4j/jetbrains-plugin-cypher#44 Neueda4j/jetbrains-plugin-cypher#45 Neueda4j/jetbrains-plugin-cypher#46

TL;DR; - we need to analyze Cypher queries and report to use when we find that Cypher query is semantically incorrect.

At this point only syntax analysis is made.

Examples:

1) Missing type for r

CREATE (n)-[r]->(m)

2) Missing RETURN statement not highlighted

CREATE (n),(m) WITH n,m CALL apoc.create.setProperty([id(n),m],'name','John') YIELD node

3) If CALL is not stand-alone it needs YIELD