Skip to content

Commit

Permalink
cypher requires parentheses in patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
panthershark committed May 10, 2016
1 parent 55f7a09 commit e3fa615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node.js
Expand Up @@ -305,7 +305,7 @@ var node = module.exports = {
}, []);

var cypher = [
label == null ? "MATCH n" : util.format("MATCH (n:`%s`)", label),
label == null ? "MATCH (n)" : util.format("MATCH (n:`%s`)", label),
matchers.length > 0 ? "WHERE" : "",
matchers.join(any ? " or " : " and "),
"RETURN n"
Expand Down

0 comments on commit e3fa615

Please sign in to comment.