Add a Hive Gateway compatible schema fetcher function based on hive:dev - #8463
Open
jdolle wants to merge 4 commits into
Open
Add a Hive Gateway compatible schema fetcher function based on hive:dev#8463jdolle wants to merge 4 commits into
jdolle wants to merge 4 commits into
Conversation
Collaborator
🚀 Snapshot Release (
|
| Package | Version | Info |
|---|---|---|
@graphql-hive/apollo |
0.48.8-alpha-20260910214706-54ac3f3b7bbd1cc0e7a7c4ee7ca116256d0b9d75 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/cli |
0.63.3-alpha-20260910214706-54ac3f3b7bbd1cc0e7a7c4ee7ca116256d0b9d75 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/core |
0.23.0-alpha-20260910214706-54ac3f3b7bbd1cc0e7a7c4ee7ca116256d0b9d75 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/envelop |
0.40.13-alpha-20260910214706-54ac3f3b7bbd1cc0e7a7c4ee7ca116256d0b9d75 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/gateway-plugin-console-sdk |
0.1.7-alpha-20260910214706-54ac3f3b7bbd1cc0e7a7c4ee7ca116256d0b9d75 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/yoga |
0.49.7-alpha-20260910214706-54ac3f3b7bbd1cc0e7a7c4ee7ca116256d0b9d75 |
npm ↗︎ unpkg ↗︎ |
Contributor
|
🐋 This PR was built and pushed to the following Docker images: Targets: Platforms: Image Tags: |
jdolle
commented
Sep 10, 2026
| target = result.data; | ||
| } | ||
|
|
||
| const config: UnifiedGraphConfig = async ({ log, fetch: gatewayFetch, cwd, cache }) => { |
Collaborator
Author
There was a problem hiding this comment.
The cache is a KeyValueCache<any> | undefined but I'm not sure when this cache is or isnt provided. Any clarity on this is appreciated.
n1ru4l
requested changes
Sep 10, 2026
n1ru4l
left a comment
Contributor
There was a problem hiding this comment.
I don't think this belongs into the CLI package. Why not put this directly into the gateway or the gateway sdk package?
jdolle
force-pushed
the
hive-dev-fetcher-fn
branch
from
September 10, 2026 20:47
373725e to
a462163
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Currently, to automatically run a local gateway to test a local schema requires:
This requires knowledge about where all of these files exist and hive:dev feels like an unnecessary extra process that is slowing things down.
Description
This change creates a
@graphql-hive/gatewaycompatible schema fetcher that is based onhive:dev. You can then configure the local subgraphs in the gateway and use an environment variable or another conditional to enabled this schema fetcher.Checklist