Releases: neo4j/graphql
@neo4j/graphql@7.4.3
Patch Changes
-
#7027
eba4216Thanks @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
3a3306aThanks @a-alle! - Allow enabling/disabling of connection query fields on type by type basis as well as for the whole schema via a new@querydirective argumentconnection. Default value ofconnectionis the same asread, inheriting its default value oftrueif 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
@neo4j/graphql@7.4.1
Patch Changes
-
#6903
9fb31f6Thanks @angrykoala! - Add support for@cypherdirective in relationship propertiestype ActedIn @relationshipProperties { screenTimeHours: Float @cypher( statement: """ RETURN this.screenTimeMinutes / 60 AS c """ columnName: "c" ) screenTimeMinutes: Int }
@neo4j/graphql@7.4.0
Minor Changes
- #6899
f359c4dThanks @angrykoala! - Add populatedByOperation field in context passed to populatedBy callbacks
Patch Changes
@neo4j/graphql@7.3.3
Patch Changes
- #6880
6e0bd78Thanks @angrykoala! - Fix@cypherdirective top level queries targetting an interface or union
@neo4j/graphql@7.3.2
Patch Changes
-
#6830
c3ec362Thanks @angrykoala! - Fix duplicate relationships on nested connect from union types -
#6842
7455804Thanks @angrykoala! - Update peer depdency of neo4j-driver to cover version 5 and 6
@neo4j/graphql@7.3.1
Patch Changes
-
#6811
f821f53Thanks @mjfwebb! - Add case insensitive support to Cypher filter -
4e90418Thanks @angrykoala! - Fix incorrect Cypher in authorization for create operations -
#6779
bdbb211Thanks @angrykoala! - Duration parser changed to support ISO strings ending in T, for example: "P-238DT"
@neo4j/introspector@5.0.1
@neo4j/graphql@7.3.0
Minor Changes
-
#6740
5cdb2ebThanks @luffy1727! - Add the ability to specify transaction configuration. e.g. timeoutconst 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 }), });