<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/compose-local-subgraphs-inside-hive-gateway-tcdayddek" -->

---
title: Compose Local Subgraphs Inside Hive Gateway | daily.dev
description: Hive Gateway now supports composing a supergraph locally during development by pointing its supergraph command at subgraphs running on a developer's machine....
canonical: https://daily.dev/posts/compose-local-subgraphs-inside-hive-gateway-tcdayddek
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Compose Local Subgraphs Inside Hive Gateway | daily.dev
og:description: Hive Gateway now supports composing a supergraph locally during development by pointing its supergraph command at subgraphs running on a developer's machine....
og:url: https://daily.dev/posts/compose-local-subgraphs-inside-hive-gateway-tcdayddek
og:image: https://api.daily.dev/og/posts/tcdAydDeK.png
og:image:alt: Compose Local Subgraphs Inside Hive Gateway
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Compose Local Subgraphs Inside Hive Gateway

**[The Guild](https://daily.dev/sources/guild)** · 2 min read · 0 upvotes · 0 comments

## Summary

Hive Gateway now supports composing a supergraph locally during development by pointing its supergraph command at subgraphs running on a developer's machine. It automatically recomposes when a schema changes, eliminating the need for a separate hive dev process or a supergraph file. Developers can fetch schemas via federation's _service SDL field, plain GraphQL introspection, or a local file, and can optionally merge their local changes with the rest of a published graph through Hive's registry using remote composition, which uses the same composition engine as CI checks and publishes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://the-guild.dev/graphql/hive/product-updates/2026-09-21-hive-gateway-dev-supergraph-source>

## Questions this post answers

### How do I compose a GraphQL supergraph locally with Hive Gateway during development?

Hive Gateway can compose its own supergraph locally using its new dev supergraph source. Pass one --dev-service flag per running subgraph, or configure a dev supergraph source in gateway.config.ts, and the gateway fetches each schema, composes them, and recomposes automatically whenever a schema changes, with no separate hive dev process or supergraph file needed.

_Track new tooling like this dev supergraph source through daily.dev while wiring up federated GraphQL locally._

### How does Hive Gateway fetch subgraph schemas that are not federation-aware?

By default Hive Gateway fetches each service's schema through its federation _service sdl field, but for services that are not federation aware, set --dev-service-source <name>=graphql to use plain GraphQL introspection instead, or use <name>=file with --dev-service-schema <name>=./schema.graphql to read the SDL straight from disk before any resolver exists.

_daily.dev surfaces practical GraphQL federation tips like this for developers composing multi-service schemas._

### What is the difference between local and remote composition in Hive Gateway's dev supergraph source?

Local composition only includes the subgraphs explicitly listed and is meant for offline work or quick experiments, while remote composition sends local schemas to the Hive registry, which swaps in the target's matching subgraph and composes it with every other subgraph as last published, using the same composition engine as schema checks and CI publishes.

_daily.dev helps developers deciding between local and remote GraphQL composition workflows stay informed._

## Similar posts on daily.dev

- [Hive Gateway: Local Subgraph Development Just Got Easier](https://daily.dev/posts/hive-gateway-local-subgraph-development-just-got-easier-wyr7y8v1f) · The Guild · 0 upvotes · 0 comments
- [The Missing Layer in GraphQL Federation](https://daily.dev/posts/the-missing-layer-in-graphql-federation-aweol3nuv) · WunderGraph · 0 upvotes · 0 comments
- [From Ruby Monolith to Federation: How Reverb Runs GraphQL with Hive](https://daily.dev/posts/from-ruby-monolith-to-federation-how-reverb-runs-graphql-with-hive-bfhaxcmmn) · The Guild · 0 upvotes · 0 comments
- [From API Chaos to Collaborative Graph](https://daily.dev/posts/from-api-chaos-to-collaborative-graph-qnazszda5) · monday Engineering · 37 upvotes · 0 comments
- [GraphQL Federation Was Built Backwards](https://daily.dev/posts/graphql-federation-was-built-backwards-halcl0zsj) · WunderGraph · 5 upvotes · 0 comments

---

Tags: [#graphql](https://daily.dev/tags/graphql), [#api-gateway](https://daily.dev/tags/api-gateway)

[View this post on daily.dev](https://daily.dev/posts/compose-local-subgraphs-inside-hive-gateway-tcdayddek)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Compose Local Subgraphs Inside Hive Gateway","url":"https://daily.dev/posts/compose-local-subgraphs-inside-hive-gateway-tcdayddek","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/compose-local-subgraphs-inside-hive-gateway-tcdayddek"},"datePublished":"2026-09-28T16:54:00.655Z","dateModified":"2026-09-28T16:54:21.491Z","description":"Hive Gateway now supports composing a supergraph locally during development by pointing its supergraph command at subgraphs running on a developer's machine....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/28c2bd1982dd842db90363076daab3fe?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/28c2bd1982dd842db90363076daab3fe?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"The Guild","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The Guild","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ee61cd9a12684e9889775727044e4a49","url":"https://daily.dev/sources/guild"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/compose-local-subgraphs-inside-hive-gateway-tcdayddek","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"graphql,api-gateway","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Guild","item":"https://daily.dev/sources/guild"},{"@type":"ListItem","position":3,"name":"Compose Local Subgraphs Inside Hive Gateway"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/compose-local-subgraphs-inside-hive-gateway-tcdayddek#faq","mainEntity":[{"@type":"Question","name":"How do I compose a GraphQL supergraph locally with Hive Gateway during development?","acceptedAnswer":{"@type":"Answer","text":"Hive Gateway can compose its own supergraph locally using its new dev supergraph source. Pass one --dev-service flag per running subgraph, or configure a dev supergraph source in gateway.config.ts, and the gateway fetches each schema, composes them, and recomposes automatically whenever a schema changes, with no separate hive dev process or supergraph file needed. Track new tooling like this dev supergraph source through daily.dev while wiring up federated GraphQL locally."}},{"@type":"Question","name":"How does Hive Gateway fetch subgraph schemas that are not federation-aware?","acceptedAnswer":{"@type":"Answer","text":"By default Hive Gateway fetches each service's schema through its federation _service sdl field, but for services that are not federation aware, set --dev-service-source \u003cname\u003e=graphql to use plain GraphQL introspection instead, or use \u003cname\u003e=file with --dev-service-schema \u003cname\u003e=./schema.graphql to read the SDL straight from disk before any resolver exists. daily.dev surfaces practical GraphQL federation tips like this for developers composing multi-service schemas."}},{"@type":"Question","name":"What is the difference between local and remote composition in Hive Gateway's dev supergraph source?","acceptedAnswer":{"@type":"Answer","text":"Local composition only includes the subgraphs explicitly listed and is meant for offline work or quick experiments, while remote composition sends local schemas to the Hive registry, which swaps in the target's matching subgraph and composes it with every other subgraph as last published, using the same composition engine as schema checks and CI publishes. daily.dev helps developers deciding between local and remote GraphQL composition workflows stay informed."}}]}
```

