brikteknologier / seraph-model

thin model layer for seraph/neo4j (node.js)
MIT License
111 stars 28 forks source link

Error while creating composed nodes: Parentheses are required to identify nodes in patterns #125

Closed kortemy closed 7 years ago

kortemy commented 7 years ago

Similar to this issue: https://github.com/brikteknologier/seraph/issues/199

I tried adding a simple composition as described in the docs, but with seraph 0.15.2 and seraph-model 0.9.1 on neo4j 3.0.6 results in this error:

Parentheses are required to identify nodes in patterns, i.e. (Event0) (line 1, column 61 (offset: 60))\n"   CREATE (Event0:Event),(Location0:Location) CREATE UNIQUE Event0-[__rel_Location0:located_at]->Location0 SET Event0={Event0},__rel_Location0={__rel_Location0},Location0={Location0} WITH Event0,Location0,__rel_Location0 OPTIONAL MATCH Event0-[rel:`located_at`]->target WHERE not (target IN [Event0,Location0]) DELETE rel RETURN Event0,Location0,__rel_Location0

Creating normal nodes without composition works as expected.

kortemy commented 7 years ago

Oops, looks like I wasn't using seraph 0.15.2 after all. :) My bad. Everything is fine.