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) #6064

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 Mar 10, 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/graphql@7.0.0-alpha.4

Major Changes

  • #6048 c667618 Thanks @darrellwarde! - Subscriptions are now an opt-in feature which can be enabled by using the @subscription directive on either schema or type.

    For example, to enable subscriptions for the whole schema (equivalent to before this breaking change):

    type Movie @node {
        title: String!
    }
    
    extend schema @subscription

    To enable subscriptions just for the Movie type:

    type Movie @node @subscription {
        title: String!
    }
  • #6027 fd7d373 Thanks @angrykoala! - Remove deprecated fields *aggregate in favor of the aggregate field in connections. Remove option deprecatedAggregateOperations from the excludeDeprecatedFields setting.

Minor Changes

  • #6024 2318336 Thanks @MacondoExpress! - Aggregations filters are moved to the connection input field.

    Current aggregation filters:

    {
        posts(where: { likesConnection: { aggregate: { node: { someInt: { average: { eq: 10 } } } } } }) {
            content
        }
    }

    Deprecated aggregation filters:

    {
        posts(where: { likesAggregate: { node: { someInt: { average: { eq: 10 } } } } }) {
            content
        }
    }
  • #6024 2318336 Thanks @MacondoExpress! - The aggregation filter count now supports both, nodes and relationships.

    Count filter on nodes:

    {
        posts(where: { likesConnection: { aggregate: { count: { nodes: { eq: 2 } } } } }) {
            title
            likes {
                name
            }
        }
    }

    Count filter on edges:

    {
        posts(where: { likesConnection: { aggregate: { count: { edges: { eq: 2 } } } } }) {
            title
            likes {
                name
            }
        }
    }

Patch Changes

  • #6024 667e75c Thanks @MacondoExpress! - Following the changes of moving aggregations inside the connection fields,
    the previous aggregations filters outside the connection filters are now deprecated.

    The flag aggregationFiltersOutsideConnection has been added to the excludeDeprecatedFields setting.

    const neoSchema = new Neo4jGraphQL({
        typeDefs,
        features: { excludeDeprecatedFields: { aggregationFiltersOutsideConnection: true } },
    });
  • #6000 271a0a3 Thanks @MacondoExpress! - 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

@neo4j-team-graphql neo4j-team-graphql force-pushed the changeset-release/7.x branch 2 times, most recently from 40775db to 860858d Compare March 10, 2025 15:29
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