Skip to content

@neo4j/graphql@6.5.0

Latest
Compare
Choose a tag to compare
@neo4j-team-graphql neo4j-team-graphql released this 10 Mar 14:42
· 3 commits to dev since this release
5ab5a54

Minor Changes

  • #6003 2952820 Thanks @angrykoala! - Add count fields in aggregations with support for nodes and edges count:

    query {
        moviesConnection {
            aggregate {
                count {
                    nodes
                }
            }
        }
    }
    query {
        movies {
            actorsConnection {
                aggregate {
                    count {
                        nodes
                        edges
                    }
                }
            }
        }
    }
  • #5944 a6e9486 Thanks @angrykoala! - Add aggregate field in connection:

    query {
        moviesConnection {
            aggregate {
                node {
                    count
                    int {
                        longest
                    }
                }
            }
        }
    }

Patch Changes

  • #5999 47f915e Thanks @angrykoala! - Deprecate aggregation fields (e.g actedInAggregate) in favor of the field aggregate inside the connection (e.g actedInConnection -> aggregate)

  • #5944 a6e9486 Thanks @angrykoala! - Deprecate old aggregate operations:

    query {
        moviesAggregate {
            count
            rating {
                min
            }
        }
    }

    These fields can be completely removed from the schema with the new flag deprecatedAggregateOperations:

    const neoSchema = new Neo4jGraphQL({
        typeDefs,
        features: { excludeDeprecatedFields: { deprecatedAggregateOperations: true } },
    });