cypher-query-language
cypher-query-language copied to clipboard
formatting issue with apoc.map.merge
RETURN apoc.map.merge({ a:1 }, {b:2})
results in
RETURN apoc.map.
MERGE ({ a:1 }, {b:2})
after formatting the document. merge is wrongly treated as keyword in this case. I suspect filtering for whitespace before and after merge should do the trick.
Thanks for the bug report! Yeah, looks like a fairly simple fix. I'll see what I can do...unless you want to take a crack at it?
Hi,
I have the same issue too, with apoc.coll.contains that is transformed to apoc.coll. CONTAINS after formatting.
@Heziode Thanks for the additional example. Honestly, I'm considering abandoning/deprecating this project. A Neo4j employee has created a more robust VS Code extension here, and since I don't use Neo4j or Cypher anymore I'm unlikely to spend a lot of time fixing issues.
Thank you @jakeboone02 to pointing a new extension 🙏
I understand your consideration, and I will moving to https://github.com/adam-cowley/neo4j-vscode extension.