Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/hungry-weeks-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@neo4j/cypher-builder": patch
---

Output Cypher now follows the official styleguide
33 changes: 33 additions & 0 deletions docs/modules/ROOT/pages/migration-guide-3.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,36 @@ _After_
const myOperation: Cypher.Expr = Cypher.and()
----

== Other changes

=== Change Cypher formatting

The generated Cypher now follow the best practices recommended by the link:https://neo4j.com/docs/cypher-manual/current/styleguide/[Cypher Styleguide].

For example:

_Before_
[source, Cypher]
----
CALL {
CREATE (this0:Movie)
SET
this0.id = "The Matrix"
RETURN this0
}
RETURN this0
----

_After_
[source, Cypher]
----
CALL {
CREATE (this0:Movie)
SET this0.id = 'The Matrix'
RETURN this0
}
RETURN this0
----

This doesn't have any impact on the behaviour itself, and should not cause any breaking changes on normal usage, but may affect projects
that modify or test the Cypher generated with Cypher Builder.
Loading