Loupi / node-cypher-parser

A Cypher parser/linter addon module for NodeJS.
MIT License
36 stars 9 forks source link

No support for CREATE? #5

Closed Izhaki closed 5 years ago

Izhaki commented 5 years ago
const cypher = require('cypher-parser');

const query = `CREATE (x) RETURN x`;

const result = await cypher.parse({
  query,
  dumpAst: true,
  colorize: true,
  rawJson: true,
});

results in:

Assertion failed: (cypher_astnode_instanceof(astnode, CYPHER_AST_MERGE)), function cypher_ast_merge_get_pattern_path, file ast_merge.c, line 82.
error Command failed with signal "SIGABRT".
Loupi commented 5 years ago

Fixed in https://github.com/Loupi/node-cypher-parser/releases/tag/0.1.2