Skip to content

Commit b294ca5

Browse files
authored
Merge pull request #623 from neo4j/533-follow-cypher-styleguide-where-possible
Update cypher to follow Cypher styleguide
2 parents 3bdd0d7 + e0f9a8e commit b294ca5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+644
-486
lines changed

.changeset/hungry-weeks-shout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@neo4j/cypher-builder": patch
3+
---
4+
5+
Output Cypher now follows the official styleguide

docs/modules/ROOT/pages/migration-guide-3.adoc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,3 +280,36 @@ _After_
280280
const myOperation: Cypher.Expr = Cypher.and()
281281
----
282282

283+
== Other changes
284+
285+
=== Change Cypher formatting
286+
287+
The generated Cypher now follow the best practices recommended by the link:https://neo4j.com/docs/cypher-manual/current/styleguide/[Cypher Styleguide].
288+
289+
For example:
290+
291+
_Before_
292+
[source, Cypher]
293+
----
294+
CALL {
295+
CREATE (this0:Movie)
296+
SET
297+
this0.id = "The Matrix"
298+
RETURN this0
299+
}
300+
RETURN this0
301+
----
302+
303+
_After_
304+
[source, Cypher]
305+
----
306+
CALL {
307+
CREATE (this0:Movie)
308+
SET this0.id = 'The Matrix'
309+
RETURN this0
310+
}
311+
RETURN this0
312+
----
313+
314+
This doesn't have any impact on the behaviour itself, and should not cause any breaking changes on normal usage, but may affect projects
315+
that modify or test the Cypher generated with Cypher Builder.

0 commit comments

Comments
 (0)