January 02, 2025
·
172 commits
to main
since this release
@graphql-hive/gateway-abort-signal-any@0.0.3
Patch Changes
-
#401
c60a8f4
Thanks @ardatan! - dependencies updates:- Updated dependency
graphql@^15.0.0 || ^16.9.0 || ^17.0.0
↗︎ (from^16.9.0 || ^17.0.0
, inpeerDependencies
)
- Updated dependency
@graphql-tools/batch-delegate@9.0.27
Patch Changes
-
#396
da65b2d
Thanks @ardatan! - Memoize the key arguments correctly;With the following schema and resolvers,
userById
should batch all the requests tousersByIds
;{ typeDefs: /* GraphQL */ ` type User { id: ID! email: String! } type Query { userById(id: ID!): User usersByIds(ids: [ID!]): [User] } `, resolvers: { Query: { usersByIds: (_root, args) => { return args.ids.map((id: string) => users.find((user) => user.id === id)); }, userById: (root, args, context, info) => { return batchDelegateToSchema({ schema: userSubschema, fieldName: 'usersByIds', key: args.id, rootValue: root, context, info, }) }, }, }, }
This query should batch all the requests to
usersByIds
:{ userById(id: "1") { id email } userById(id: "2") { id email } }
The delegation request should be;
{ usersByIds(ids: ["1", "2"]) { id email } }
@graphql-tools/executor-http@1.2.4
Patch Changes
- Updated dependencies [
c60a8f4
]:- @graphql-hive/gateway-abort-signal-any@0.0.3
@graphql-tools/federation@3.0.7
Patch Changes
-
#387
3571399
Thanks @ardatan! - In case of shared root field on Mutation, it was batched incorrectly across subgraphs. But instead only one mutation should be called as mutations should not be parallel -
Updated dependencies []:
- @graphql-tools/executor-http@1.2.4
- @graphql-tools/stitch@9.4.13
@graphql-mesh/fusion-runtime@0.10.27
Patch Changes
- Updated dependencies [
3571399
]:- @graphql-tools/federation@3.0.7
- @graphql-mesh/transport-common@0.7.26
- @graphql-tools/stitch@9.4.13
@graphql-hive/gateway@1.7.6
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.4.6
- @graphql-mesh/transport-http@0.6.30
- @graphql-mesh/plugin-opentelemetry@1.3.34
- @graphql-mesh/plugin-prometheus@1.3.22
- @graphql-mesh/transport-http-callback@0.5.17
- @graphql-mesh/transport-ws@0.4.15
- @graphql-mesh/hmac-upstream-signature@1.2.19
@graphql-mesh/plugin-opentelemetry@1.3.34
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.4.6
- @graphql-mesh/transport-common@0.7.26
@graphql-mesh/plugin-prometheus@1.3.22
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.4.6
@graphql-hive/gateway-runtime@1.4.6
Patch Changes
- Updated dependencies [
c60a8f4
,3571399
,da65b2d
]:- @graphql-hive/gateway-abort-signal-any@0.0.3
- @graphql-tools/federation@3.0.7
- @graphql-tools/batch-delegate@9.0.27
- @graphql-tools/executor-http@1.2.4
- @graphql-mesh/transport-common@0.7.26
- @graphql-mesh/fusion-runtime@0.10.27
- @graphql-tools/stitch@9.4.13
- @graphql-mesh/hmac-upstream-signature@1.2.19
@graphql-tools/stitch@9.4.13
Patch Changes
- Updated dependencies [
da65b2d
]:- @graphql-tools/batch-delegate@9.0.27
@graphql-mesh/transport-common@0.7.26
Patch Changes
- Updated dependencies [
c60a8f4
]:- @graphql-hive/gateway-abort-signal-any@0.0.3
@graphql-mesh/transport-http@0.6.30
Patch Changes
- Updated dependencies []:
- @graphql-tools/executor-http@1.2.4
- @graphql-mesh/transport-common@0.7.26
@graphql-mesh/transport-http-callback@0.5.17
Patch Changes
- Updated dependencies []:
- @graphql-mesh/transport-common@0.7.26
@graphql-mesh/transport-ws@0.4.15
Patch Changes
- Updated dependencies []:
- @graphql-mesh/transport-common@0.7.26