Skip to content

Commit b0b4bad

Browse files
Version Packages
1 parent 9a1d85f commit b0b4bad

File tree

6 files changed

+67
-69
lines changed

6 files changed

+67
-69
lines changed

.changeset/short-paths-bet.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

.changeset/tiny-tips-cross.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

packages/apollo-federation-subgraph-compatibility/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dependencies": {
1111
"@apollo/server": "^5.0.0",
1212
"@graphql-tools/wrap": "^11.0.0",
13-
"@neo4j/graphql": "^7.4.2",
13+
"@neo4j/graphql": "^7.4.3",
1414
"graphql": "16.12.0",
1515
"graphql-tag": "^2.12.6",
1616
"neo4j-driver": "^5.8.0"

packages/graphql/CHANGELOG.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,68 @@
11
# @neo4j/graphql
22

3+
## 7.4.3
4+
5+
### Patch Changes
6+
7+
- [#7027](https://github.com/neo4j/graphql/pull/7027) [`eba4216`](https://github.com/neo4j/graphql/commit/eba421624608bfda3c5fe9215c898ce301dd75f3) Thanks [@angrykoala](https://github.com/angrykoala)! - Fix failing query when aggregation and totalCount is queried in a connection, but not edges. For example:
8+
9+
```graphql
10+
type Actor @node {
11+
name: String!
12+
}
13+
```
14+
15+
```graphql
16+
query {
17+
actorsConnection {
18+
totalCount
19+
aggregate {
20+
node {
21+
name {
22+
shortest
23+
}
24+
}
25+
count {
26+
nodes
27+
}
28+
}
29+
}
30+
}
31+
```
32+
33+
- [#6987](https://github.com/neo4j/graphql/pull/6987) [`3a3306a`](https://github.com/neo4j/graphql/commit/3a3306a998e84815809e0d770bef0a0cead49e31) Thanks [@a-alle](https://github.com/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.
34+
35+
Usage example:
36+
37+
The following type definitions will create the GraphQL Query fields:
38+
39+
```gql
40+
type Actor @query(read: false, connection: true) @node {
41+
name: String
42+
}
43+
```
44+
45+
```graphql
46+
type Query {
47+
# only connection field
48+
actorsConnection(after: String, first: Int, sort: [ActorSort!], where: ActorWhere): ActorsConnection!
49+
}
50+
```
51+
52+
Inheriting the value of the read argument as default:
53+
54+
```gql
55+
type Actor @query(read: false) @node {
56+
name: String
57+
}
58+
```
59+
60+
```graphql
61+
type Query {
62+
# no reads
63+
}
64+
```
65+
366
## 7.4.2
467

568
### Patch Changes

packages/graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neo4j/graphql",
3-
"version": "7.4.2",
3+
"version": "7.4.3",
44
"description": "A GraphQL to Cypher query execution layer for Neo4j and JavaScript GraphQL implementations",
55
"keywords": [
66
"neo4j",

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,7 +2821,7 @@ __metadata:
28212821
languageName: node
28222822
linkType: soft
28232823

2824-
"@neo4j/graphql@npm:^7.0.0, @neo4j/graphql@npm:^7.4.2, @neo4j/graphql@workspace:packages/graphql":
2824+
"@neo4j/graphql@npm:^7.0.0, @neo4j/graphql@npm:^7.4.3, @neo4j/graphql@workspace:packages/graphql":
28252825
version: 0.0.0-use.local
28262826
resolution: "@neo4j/graphql@workspace:packages/graphql"
28272827
dependencies:
@@ -4949,7 +4949,7 @@ __metadata:
49494949
"@apollo/federation-subgraph-compatibility": "npm:2.2.2"
49504950
"@apollo/server": "npm:^5.0.0"
49514951
"@graphql-tools/wrap": "npm:^11.0.0"
4952-
"@neo4j/graphql": "npm:^7.4.2"
4952+
"@neo4j/graphql": "npm:^7.4.3"
49534953
fork-ts-checker-webpack-plugin: "npm:9.1.0"
49544954
graphql: "npm:16.12.0"
49554955
graphql-tag: "npm:^2.12.6"

0 commit comments

Comments
 (0)