Skip to content

Conversation

@angrykoala
Copy link
Member

Following the Cypher styleguide:

  • padBlock now uses 2 spaces, instead of 4
  • ON CREATE moved before ON MATCH
  • SET parameters will no longer go to a newline, if there is only one parameter
  • Removed spaces in map: { a: b, c:d } -> {a: b, c:d}

The following styleguide rules are not being enforced:

  • Break on more than 80 characters: Breaks are static, while most generated Cypher will stay below 80 columns, patterns and some other elements are never broken into multiple lines

@changeset-bot
Copy link

changeset-bot bot commented Nov 6, 2025

🦋 Changeset detected

Latest commit: e0f9a8e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@neo4j/cypher-builder Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@angrykoala angrykoala force-pushed the 533-follow-cypher-styleguide-where-possible branch from 79e468b to be4a6b6 Compare November 12, 2025 13:23
@angrykoala angrykoala force-pushed the 3-dev branch 2 times, most recently from dcf71fd to 48739bc Compare November 12, 2025 13:57
@angrykoala angrykoala force-pushed the 533-follow-cypher-styleguide-where-possible branch from be4a6b6 to 50d16d5 Compare November 12, 2025 13:59
@angrykoala angrykoala marked this pull request as ready for review November 13, 2025 13:23
`);
"CALL {
CREATE (this0:Movie)
SET this0.id = $param0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is different with the documentation information, I think one of the two is wrong!

@angrykoala angrykoala merged commit b294ca5 into 3-dev Nov 13, 2025
3 checks passed
@angrykoala angrykoala deleted the 533-follow-cypher-styleguide-where-possible branch November 13, 2025 15:52
@angrykoala angrykoala linked an issue Nov 20, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow Cypher Styleguide where possible

3 participants