Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release new version - changesets #465

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Release new version - changesets #465

merged 1 commit into from
Nov 27, 2024

Conversation

neo4j-team-graphql
Copy link
Collaborator

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@neo4j/cypher-builder@2.0.2

Patch Changes

  • #463 57a3f9c Thanks @angrykoala! - Fix order of set remove subclauses. The generated cypher will now maintain the order of multiple SET and REMOVE statements.

    For example:

    const matchQuery = new Cypher.Match(new Cypher.Pattern(personNode, { labels: ["Person"] }))
        .where(personNode, { name: nameParam })
        .set([personNode.property("name"), evilKeanu])
        .remove(personNode.property("anotherName"))
        .set([personNode.property("anotherName"), new Cypher.Param(nameParam)])
        .set([personNode.property("oldName"), new Cypher.Param(nameParam)])
        .return(personNode);

    Before

    MATCH (this0:Person)
    WHERE this0.name = $param0
    SET
        this0.name = $param1
        this0.anotherName = $param2,
        this0.oldName = $param3
    REMOVE this0.anotherName
    RETURN this0

    After

    MATCH (this0:Person)
    WHERE this0.name = $param0
    SET
        this0.name = $param1
    REMOVE this0.anotherName
    SET
        this0.anotherName = $param2,
        this0.oldName = $param3
    RETURN this0

Copy link

sonarcloud bot commented Nov 27, 2024

@angrykoala angrykoala merged commit 545088d into main Nov 27, 2024
10 checks passed
@angrykoala angrykoala deleted the changeset-release/main branch November 27, 2024 13:52
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.

2 participants