Releases: graphql-hive/gateway
January 20, 2025
@graphql-tools/[email protected]
Patch Changes
- Updated dependencies [
18682e6
]:- @graphql-tools/[email protected]
@graphql-tools/[email protected]
Patch Changes
-
#471
18682e6
Thanks @ardatan! - While creating a delegation request for the subschema, an selection set should be spreaded on the union type field correctly.In case of the following schema;
type Query { foo: Foo } union Foo = Bar | Baz type Bar { id: ID! name: String age: Age } type Age { years: Int months: Int } type Baz { id: ID! name: Name age: Int } type Name { first: String last: String }
If the operation is generated as following;
query { foo { id name age { years months } } }
It should be spreaded on the union type field correctly as following;
query { foo { ... on Bar { id age { years months } } ... on Baz { id name { first last } } } }
@graphql-tools/[email protected]
Patch Changes
- Updated dependencies [
18682e6
,e9f78cd
]:- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
18682e6
,e9f78cd
]:- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
@graphql-hive/[email protected]
Minor Changes
- #462
9a6ae85
Thanks @enisdenjo! - Point to exact location of syntax error when parsing malformed config files
Patch Changes
-
#462
9a6ae85
Thanks @enisdenjo! - dependencies updates:- Added dependency
@graphql-hive/importer@workspace:^
↗︎ (todependencies
) - Removed dependency
@graphql-mesh/include@^0.2.3
↗︎ (fromdependencies
)
- Added dependency
-
#462
9a6ae85
Thanks @enisdenjo! - Use@graphql-hive/importer
for importing configs and transpiling TypeScript files -
Updated dependencies [
9a6ae85
]:- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
@graphql-hive/[email protected]
Major Changes
- #462
9a6ae85
Thanks @enisdenjo! - Improving Hive's importing capabilities allowing it to parse TypeScript files
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
@graphql-hive/[email protected]
Patch Changes
- Updated dependencies [
18682e6
,e9f78cd
]:- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-mesh/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-mesh/[email protected]
- @graphql-tools/[email protected]
@graphql-tools/[email protected]
Patch Changes
- Updated dependencies [
18682e6
,e9f78cd
]:- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
@graphql-tools/[email protected]
Patch Changes
- Updated dependencies [
18682e6
]:- @graphql-tools/[email protected]
@graphql-tools/[email protected]
Patch Changes
-
#472
e9f78cd
Thanks @ardatan! -RenameObjectFieldArguments
should transform the passedargs
indelegationContext
.When a subschema's a root field argument is renamed, the passed arguments should be also transformed;
type Query { # This is the original field book(book_id: ID): [Book] } type Book { id: ID title: String }
When the subschema above is transformed to;
type Query { # This is the transformed field book(bookId: ID): [Book] } type Book { id: ID title: String }
The following call should be transformed;
delegateToSchema({ schema: { schema, transforms: [ new RenameObjectFieldArguments((typeName, fieldName, argName) => { if ( typeName === 'Query' && fieldName === 'book' && argName === 'book_id' ) { return 'bookId'; } return argName; }), ], }, operation: 'query', fieldName: 'book', args: { bookId: '1', }, });
To this query;
{ book(book_id: "1") { # ... } }
-
Updated dependencies [
18682e6
]:- @graphql-tools/[email protected]
[email protected]
Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.
January 15, 2025
@graphql-tools/[email protected]
Patch Changes
-
#420
14152f7
Thanks @ardatan! - - In case of schema reload, throwSCHEMA_RELOAD
error while recreating the transports and executors- In case of shut down, throw
SHUTTING_DOWN
error while cleaning the transports and executors up
Previously, these errors are only thrown for subscriptions not it is thrown in other type of operations as well.
And previously the thrown errors during these two cleanup and restart process were cryptic, now the mentioned two errors above are thrown with more clear messages - In case of shut down, throw
@graphql-tools/[email protected]
Patch Changes
-
#443
a625269
Thanks @ardatan! - In case of shared Mutation field in different subgraphs, choose the best option instead of choosing the last option just like we do in Query root fields -
Updated dependencies [
a625269
,14152f7
]:- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
@graphql-mesh/[email protected]
Patch Changes
-
#420
14152f7
Thanks @ardatan! - dependencies updates:- Updated dependency
@envelop/core@^5.0.3
↗︎ (from^5.0.1
, independencies
)
- Updated dependency
-
#420
14152f7
Thanks @ardatan! - - In case of schema reload, throwSCHEMA_RELOAD
error while recreating the transports and executors- In case of shut down, throw
SHUTTING_DOWN
error while cleaning the transports and executors up
Previously, these errors are only thrown for subscriptions not it is thrown in other type of operations as well.
And previously the thrown errors during these two cleanup and restart process were cryptic, now the mentioned two errors above are thrown with more clear messages - In case of shut down, throw
-
#420
14152f7
Thanks @ardatan! - Leave the supergraph configuration handling logic to fusion-runtime package so it can compare bare read supergraph sdl directly inside unified graph manager to decide if the supergraph has changed. -
Updated dependencies [
14152f7
,a625269
,a625269
,14152f7
]:- @graphql-mesh/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
@graphql-hive/[email protected]
Patch Changes
- Updated dependencies [
14152f7
,14152f7
,14152f7
]:- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
14152f7
,14152f7
,14152f7
,14152f7
]:- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
14152f7
,14152f7
,14152f7
]:- @graphql-hive/[email protected]
@graphql-hive/[email protected]
Patch Changes
-
#420
14152f7
Thanks @ardatan! - dependencies updates:- Added dependency
@graphql-tools/executor-common@workspace:^
↗︎ (todependencies
)
- Added dependency
-
#420
14152f7
Thanks @ardatan! - - In case of schema reload, throwSCHEMA_RELOAD
error while recreating the transports and executors- In case of shut down, throw
SHUTTING_DOWN
error while cleaning the transports and executors up
Previously, these errors are only thrown for subscriptions not it is thrown in other type of operations as well.
And previously the thrown errors during these two cleanup and restart process were cryptic, now the mentioned two errors above are thrown with more clear messages - In case of shut down, throw
-
#420
14152f7
Thanks @ardatan! - Leave the supergraph configuration handling logic to fusion-runtime package so it can compare bare read supergraph sdl directly inside unified graph manager to decide if the supergraph has changed. -
Updated dependencies [
14152f7
,14152f7
,a625269
,a625269
,14152f7
,14152f7
]:- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-mesh/[email protected]
@graphql-tools/[email protected]
Patch Changes
@graphql-mesh/[email protected]
Patch Changes
-
#420
14152f7
Thanks @ardatan! - dependencies updates:- Updated dependency
@envelop/core@^5.0.3
↗︎ (from^5.0.1
, independencies
)
- Updated dependency
-
#420
14152f7
Thanks @ardatan! - - In case of schema reload, throwSCHEMA_RELOAD
error while recreating the transports and executors- In case of shut down, throw
SHUTTING_DOWN
error while cleaning the transports and executors up
Previously, these errors are only thrown for subscriptions not it is thrown in other type of operations as well.
And previously the thrown errors during these two cleanup and restart process were cryptic, now the mentioned two errors above are thrown with more clear messages - In case of shut down, throw
@graphql-mesh/[email protected]
Patch Changes
-
#420
14152f7
Thanks @ardatan! - - In case of schema reload, throwSCHEMA_RELOAD
error while recreating the transports and executors- In case of shut down, throw
SHUTTING_DOWN
error while cleaning the transports and executors up
Previously, these errors are only thrown for subscriptions not it is thrown in other type of operations as well.
And previously the thrown errors during these two cleanup and restart process ... - In case of shut down, throw
[email protected]
Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.
January 08, 2025
@graphql-tools/[email protected]
Patch Changes
- #351
0591aa9
Thanks @ardatan! - Keep the custom directives(using @composeDirective) from the supergraph, in the unified schema served by the gateway should keep it.
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
0591aa9
]:- @graphql-tools/[email protected]
@graphql-hive/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
@graphql-hive/[email protected]
Patch Changes
- Updated dependencies [
0591aa9
]:- @graphql-tools/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
[email protected]
Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.
January 06, 2025
@graphql-hive/[email protected]
Patch Changes
-
#412
0d7b42d
Thanks @enisdenjo! - Dont install peer dependencies automatically with npm in Docker -
Updated dependencies []:
- @graphql-mesh/[email protected]
[email protected]
Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.
January 02, 2025
@graphql-hive/[email protected]
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/[email protected]
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/[email protected]
Patch Changes
- Updated dependencies [
c60a8f4
]:- @graphql-hive/[email protected]
@graphql-tools/[email protected]
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/[email protected]
- @graphql-tools/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
3571399
]:- @graphql-tools/[email protected]
- @graphql-mesh/[email protected]
- @graphql-tools/[email protected]
@graphql-hive/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-hive/[email protected]
@graphql-hive/[email protected]
Patch Changes
- Updated dependencies [
c60a8f4
,3571399
,da65b2d
]:- @graphql-hive/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-tools/[email protected]
- @graphql-mesh/[email protected]
- @graphql-mesh/[email protected]
- @graphql-tools/[email protected]
- @graphql-mesh/[email protected]
@graphql-tools/[email protected]
Patch Changes
- Updated dependencies [
da65b2d
]:- @graphql-tools/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies [
c60a8f4
]:- @graphql-hive/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-tools/[email protected]
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-mesh/[email protected]
@graphql-mesh/[email protected]
Patch Changes
- Updated dependencies []:
- @graphql-mesh/[email protected]
[email protected]
Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.