Skip to content

Conversation

@enisdenjo
Copy link
Member

@enisdenjo enisdenjo commented Oct 26, 2025

#snapshot-npm-tag "hive-router-query-planner"

Ref GW-513
Related graphql-hive/router#527

How to use?

npm i @graphql-hive/router-runtime
// gateway.config.ts
import { defineConfig } from '@graphql-hive/gateway';
import { unifiedGraphHandler } from '@graphql-hive/router-runtime';

export const gatewayConfig = defineConfig({
  unifiedGraphHandler,
});

Why this way?

  • No unnecessarely increased package size
  • Improves and gives user the control
    • I.e. with an integratied approach, users could only activate/deactivate through env vars
  • Installing an extra package is explicit, clear and visual
    • Also allows users to separately update and maintain package versions
    • Separate updates also separates releases on our side
  • Allows users to use the integration outside the CLI, like when using the gateway programatically

TODO

  • Pass all federation audit tests
  • Optional installation and clear use of the new qp
  • Run unit tests using hive router qp
  • Run leak tests using hive router qp
  • Run bun tests using hive router qp
  • Run e2e tests using hive router qp
  • Run federation-example memtests using hive router qp
  • Run rest of memtests using hive router qp
  • Make enabling JIT be a no-op when using new qp (we dont use executable schemas)
  • Progressive Override
  • Hive Router Runtime in Gateway console#7247

@enisdenjo enisdenjo changed the title [EXPERIMENTAL] Use Hive Router query planner Use Hive Router query planner Oct 26, 2025
@enisdenjo enisdenjo changed the title Use Hive Router query planner Use Query Planner from Hive Router Oct 26, 2025
@theguild-bot
Copy link
Collaborator

theguild-bot commented Oct 26, 2025

🚀 Snapshot Release (hive-router-query-planner)

The latest changes of this PR are available as hive-router-query-planner on npm (based on the declared changesets):

Package Version Info
@graphql-mesh/fusion-runtime 1.5.0-hive-router-query-planner-69e29716438770d93494cee0849ed107c0b2cd9f npm ↗︎ unpkg ↗︎
@graphql-hive/gateway 2.1.16-hive-router-query-planner-69e29716438770d93494cee0849ed107c0b2cd9f npm ↗︎ unpkg ↗︎
@graphql-hive/nestjs 2.0.21-hive-router-query-planner-69e29716438770d93494cee0849ed107c0b2cd9f npm ↗︎ unpkg ↗︎
@graphql-hive/plugin-aws-sigv4 2.0.16-hive-router-query-planner-69e29716438770d93494cee0849ed107c0b2cd9f npm ↗︎ unpkg ↗︎
@graphql-hive/plugin-opentelemetry 1.1.2-hive-router-query-planner-69e29716438770d93494cee0849ed107c0b2cd9f npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-prometheus 2.1.2-hive-router-query-planner-69e29716438770d93494cee0849ed107c0b2cd9f npm ↗︎ unpkg ↗︎
@graphql-hive/router-runtime 1.0.0-hive-router-query-planner-69e29716438770d93494cee0849ed107c0b2cd9f npm ↗︎ unpkg ↗︎
@graphql-hive/gateway-runtime 2.3.4-hive-router-query-planner-69e29716438770d93494cee0849ed107c0b2cd9f npm ↗︎ unpkg ↗︎
@graphql-hive/gateway-testing 2.0.4-hive-router-query-planner-69e29716438770d93494cee0849ed107c0b2cd9f npm ↗︎ unpkg ↗︎

@theguild-bot
Copy link
Collaborator

theguild-bot commented Oct 26, 2025

🚀 Snapshot Release (Binary for macOS-ARM64)

The latest changes of this PR are available for download (based on the declared changesets).

Download

@theguild-bot
Copy link
Collaborator

theguild-bot commented Oct 26, 2025

🚀 Snapshot Release (Binary for Linux-ARM64)

The latest changes of this PR are available for download (based on the declared changesets).

Download

@theguild-bot
Copy link
Collaborator

theguild-bot commented Oct 26, 2025

🚀 Snapshot Release (Binary for Linux-X64)

The latest changes of this PR are available for download (based on the declared changesets).

Download

@theguild-bot
Copy link
Collaborator

theguild-bot commented Oct 26, 2025

🚀 Snapshot Release (Binary for macOS-X64)

The latest changes of this PR are available for download (based on the declared changesets).

Download

@theguild-bot
Copy link
Collaborator

theguild-bot commented Oct 26, 2025

🚀 Snapshot Release (Bun Docker Image)

The latest changes of this PR are available as image on GitHub Container Registry (based on the declared changesets):

ghcr.io/graphql-hive/gateway:2.1.16-hive-router-query-planner-69e29716438770d93494cee0849ed107c0b2cd9f-bun

@theguild-bot
Copy link
Collaborator

theguild-bot commented Oct 26, 2025

🚀 Snapshot Release (Node Docker Image)

The latest changes of this PR are available as image on GitHub Container Registry (based on the declared changesets):

ghcr.io/graphql-hive/gateway:2.1.16-hive-router-query-planner-69e29716438770d93494cee0849ed107c0b2cd9f

@theguild-bot
Copy link
Collaborator

theguild-bot commented Oct 26, 2025

🚀 Snapshot Release (Binary for Windows-X64)

The latest changes of this PR are available for download (based on the declared changesets).

Download

enisdenjo and others added 17 commits November 10, 2025 17:04
# Conflicts:
#	e2e/nestjs/package.json
#	examples/apq-subgraphs/example.tar.gz
#	examples/extra-fields/example.tar.gz
#	examples/federation-mixed/example.tar.gz
#	examples/file-upload/example.tar.gz
#	examples/hmac-auth-https/example.tar.gz
#	examples/interface-additional-resolvers/example.tar.gz
#	examples/json-schema-subscriptions/example.tar.gz
#	examples/openapi-additional-resolvers/example.tar.gz
#	examples/openapi-arg-rename/example.tar.gz
#	examples/openapi-javascript-wiki/example.tar.gz
#	examples/openapi-subscriptions/example.tar.gz
#	examples/operation-field-permissions/example.tar.gz
#	examples/programmatic-batching/example.tar.gz
#	examples/subscriptions-with-transforms/example.tar.gz
#	examples/type-merging-batching/example.tar.gz
#	packages/gateway/package.json
#	yarn.lock
# Conflicts:
#	examples/apq-subgraphs/example.tar.gz
#	examples/apq-subgraphs/package-lock.json
#	examples/extra-fields/example.tar.gz
#	examples/extra-fields/package-lock.json
#	examples/federation-example/example.tar.gz
#	examples/federation-example/package-lock.json
#	examples/federation-mixed/example.tar.gz
#	examples/federation-mixed/package-lock.json
#	examples/federation-subscriptions-passthrough/example.tar.gz
#	examples/federation-subscriptions-passthrough/package-lock.json
#	examples/file-upload/example.tar.gz
#	examples/file-upload/package-lock.json
#	examples/hmac-auth-https/example.tar.gz
#	examples/hmac-auth-https/package-lock.json
#	examples/interface-additional-resolvers/example.tar.gz
#	examples/interface-additional-resolvers/package-lock.json
#	examples/json-schema-subscriptions/example.tar.gz
#	examples/json-schema-subscriptions/package-lock.json
#	examples/launchdarkly-override/example.tar.gz
#	examples/launchdarkly-override/package-lock.json
#	examples/openapi-additional-resolvers/example.tar.gz
#	examples/openapi-additional-resolvers/package-lock.json
#	examples/openapi-arg-rename/example.tar.gz
#	examples/openapi-arg-rename/package-lock.json
#	examples/openapi-javascript-wiki/example.tar.gz
#	examples/openapi-javascript-wiki/package-lock.json
#	examples/openapi-subscriptions/example.tar.gz
#	examples/openapi-subscriptions/package-lock.json
#	examples/operation-field-permissions/example.tar.gz
#	examples/operation-field-permissions/package-lock.json
#	examples/programmatic-batching/example.tar.gz
#	examples/programmatic-batching/package-lock.json
#	examples/subscriptions-with-transforms/example.tar.gz
#	examples/subscriptions-with-transforms/package-lock.json
#	examples/type-merging-batching/example.tar.gz
#	examples/type-merging-batching/package-lock.json
@enisdenjo enisdenjo merged commit 073a078 into main Nov 11, 2025
36 of 37 checks passed
@enisdenjo enisdenjo deleted the new-query-planner branch November 11, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants