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

changesets for branch 7.x (alpha) #5980

Open
wants to merge 1 commit into
base: 7.x
Choose a base branch
from

Conversation

neo4j-team-graphql
Copy link
Collaborator

@neo4j-team-graphql neo4j-team-graphql commented Jan 29, 2025

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 7.x, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

7.x is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on 7.x.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@neo4j/[email protected]

Major Changes

  • #5997 a716ef8 Thanks @angrykoala! - Remove publish method from Neo4jGraphQLSubscriptionsEngine interface as it is no longer used with CDC-based subscriptions. Implementing this method on custom engines will no longer have an effect, and it is no longer possible to call publish directly on Neo4jGraphQLSubscriptionsCDCEngine

  • #5976 7ddde75 Thanks @angrykoala! - Sets addVersionPrefix to true by default, this will prepend the Cypher version to all queries by default, ensuring that the correct Cypher version is used in Neo4j:

    CYPHER 5
    MATCH(this:Movie)

    This may be incompatible with older versions of Neo4j and can be disabled by setting cypherQueryOption.addVersionPrefix in the context to false:

    {
        cypherQueryOptions: {
            addVersionPrefix: true,
        },
    }

    For example, for an apollo server:

    await startStandaloneServer(server, {
        context: async ({ req }) => ({
            req,
            cypherQueryOptions: {
                addVersionPrefix: false,
            },
        }),
        listen: { port: 4000 },
    });

Patch Changes

  • #5952 4e14680 Thanks @angrykoala! - Add addVersionPrefix to cypherQueryOptions in context to add a Cypher version with CYPHER before each query:

    {
        cypherQueryOptions: {
            addVersionPrefix: true,
        },
    }

    This prepends all Cypher queries with a CYPHER [version] statement:

    CYPHER 5
    MATCH (this:Movie)
    WHERE this.title = $param0
    RETURN this { .title } AS this

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.

1 participant