Skip to content

Releases: neo4j/graphql

@neo4j/graphql@7.4.3

02 Feb 14:25
defd23a

Choose a tag to compare

Patch Changes

  • #7027 eba4216 Thanks @angrykoala! - Fix failing query when aggregation and totalCount is queried in a connection, but not edges. For example:

    type Actor @node {
        name: String!
    }
    query {
        actorsConnection {
            totalCount
            aggregate {
                node {
                    name {
                        shortest
                    }
                }
                count {
                    nodes
                }
            }
        }
    }
  • #6987 3a3306a Thanks @a-alle! - Allow enabling/disabling of connection query fields on type by type basis as well as for the whole schema via a new @query directive argument connection. Default value of connection is the same as read, inheriting its default value of true if not provided.

    Usage example:

    The following type definitions will create the GraphQL Query fields:

    type Actor @query(read: false, connection: true) @node {
        name: String
    }
    type Query {
        # only connection field
        actorsConnection(after: String, first: Int, sort: [ActorSort!], where: ActorWhere): ActorsConnection!
    }

    Inheriting the value of the read argument as default:

    type Actor @query(read: false) @node {
        name: String
    }
    type Query {
        # no reads
    }

@neo4j/graphql@7.4.2

20 Jan 13:24
b356642

Choose a tag to compare

Patch Changes

@neo4j/graphql@7.4.1

12 Jan 14:01
d1eb447

Choose a tag to compare

Patch Changes

  • #6903 9fb31f6 Thanks @angrykoala! - Add support for @cypher directive in relationship properties

    type ActedIn @relationshipProperties {
        screenTimeHours: Float
            @cypher(
                statement: """
                RETURN this.screenTimeMinutes / 60 AS c
                """
                columnName: "c"
            )
        screenTimeMinutes: Int
    }

@neo4j/graphql@7.4.0

17 Dec 15:38
aa92303

Choose a tag to compare

Minor Changes

Patch Changes

  • #6920 Thanks @a-alle! - Fix logical filters in connection queries for aggregations

@neo4j/graphql@7.3.3

03 Dec 09:43
7fcbeaa

Choose a tag to compare

Patch Changes

@neo4j/graphql@7.3.2

27 Nov 09:28
d07e885

Choose a tag to compare

Patch Changes

@neo4j/graphql@7.3.1

12 Nov 13:17
c1083b1

Choose a tag to compare

Patch Changes

@neo4j/introspector@5.0.1

31 Oct 12:54
e85c8e6

Choose a tag to compare

Patch Changes

  • #6782 51ae6ed Thanks @mjfwebb! - Replaces usage of readTransaction with executeRead in introspector to pave the way for a future upgrade to neo4j-driver v6.

@neo4j/graphql@7.3.0

16 Oct 12:39
da15c93

Choose a tag to compare

Minor Changes

  • #6740 5cdb2eb Thanks @luffy1727! - Add the ability to specify transaction configuration. e.g. timeout

    const transactionConfig = {
        timeout: 60 * 1000,
        metadata: {
            "my-very-own-metadata": "is very good!",
        },
    };
    
    const neoSchema = new Neo4jGraphQL({ typeDefs, driver });
    
    const server = new ApolloServer({
        schema: await neoSchema.getSchema(),
    });
    
    await startStandaloneServer(server, {
        context: async ({ req }) => ({ req, transaction: transactionConfig }),
    });

@neo4j/graphql@7.2.13

29 Sep 10:02
43370ad

Choose a tag to compare

Patch Changes

  • #6696 858a98f Thanks @a-alle! - Fix update rules incorrectly applied on relationship creation and deletion