<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/federation-contexts-in-native-composition-xyvzzm3c2" -->

---
title: Federation Contexts in Native Composition | daily.dev
description: Hive&#x27;s native Federation composition now supports the @context and @fromContext directives, letting a nested field read data from an ancestor type without...
canonical: https://daily.dev/posts/federation-contexts-in-native-composition-xyvzzm3c2
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Federation Contexts in Native Composition | daily.dev
og:description: Hive&#x27;s native Federation composition now supports the @context and @fromContext directives, letting a nested field read data from an ancestor type without...
og:url: https://daily.dev/posts/federation-contexts-in-native-composition-xyvzzm3c2
og:image: https://api.daily.dev/og/posts/xYVzZm3c2.png
og:image:alt: Federation Contexts in Native Composition
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.

# Federation Contexts in Native Composition

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

## Summary

Hive's native Federation composition now supports the @context and @fromContext directives, letting a nested field read data from an ancestor type without exposing that data as a public API argument. This avoids having to add extra fields to entity @key definitions just to pass data down the graph. Support for validating and composing schemas using these directives ships in @theguild/federation-composition v0.26.0.

## 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-08-31-federation-context>

## Questions this post answers

### How do I pass data from a parent type to a nested field in Apollo Federation without adding it as a public argument?

Use the @context and @fromContext directives. A type declares available data with @context, and a nested field reads a value from the nearest matching context using @fromContext. For example, a Product type can provide a $productContext, and Pricing.price can pull currency from it. The router resolves this behind the scenes, so the argument never appears in the public schema.

_Developers wiring federated schemas can follow directive support changes like this via daily.dev._

### Which version of theguild/federation-composition adds support for @context and @fromContext directives?

Version 0.26.0 of @theguild/federation-composition adds understanding of the @context and @fromContext directives, validating that contexts are used correctly during schema composition. Schemas using these directives can now be published, checked, and composed through Hive's native composition, rather than failing validation or requiring workarounds.

_Teams tracking federation tooling updates can follow releases like this on daily.dev._

## Similar posts on daily.dev

- [Understanding GraphQL Federation Versions \(V1, V1.5, and V2\)](https://daily.dev/posts/understanding-graphql-federation-versions-v1-v1-5-and-v2--m88rdzyef) · WunderGraph · 0 upvotes · 0 comments
- [Why your context layer breaks the minute you use it for something new](https://daily.dev/posts/why-your-context-layer-breaks-the-minute-you-use-it-for-something-new-94wpxbxik) · InfoWorld · 0 upvotes · 0 comments
- [GraphQL Federation Was Built Backwards](https://daily.dev/posts/graphql-federation-was-built-backwards-halcl0zsj) · WunderGraph · 5 upvotes · 0 comments
- [How the Fission Algorithm Works: Top-Down GraphQL Federation Design](https://daily.dev/posts/how-the-fission-algorithm-works-top-down-graphql-federation-design-o6ztm2k8x) · WunderGraph · 1 upvotes · 0 comments
- [A GraphQL Federation directive for Subgraph-level compliance: @openfed\_\_requireFetchReasons](https://daily.dev/posts/a-graphql-federation-directive-for-subgraph-level-compliance-openfed-requirefetchreasons-xjvdozs3y) · WunderGraph · 0 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#graphql](https://daily.dev/tags/graphql), [#hive](https://daily.dev/tags/hive)

[View this post on daily.dev](https://daily.dev/posts/federation-contexts-in-native-composition-xyvzzm3c2)

```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":"Federation Contexts in Native Composition","url":"https://daily.dev/posts/federation-contexts-in-native-composition-xyvzzm3c2","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/federation-contexts-in-native-composition-xyvzzm3c2"},"datePublished":"2026-09-01T16:00:57.066Z","dateModified":"2026-09-01T16:01:16.008Z","description":"Hive's native Federation composition now supports the @context and @fromContext directives, letting a nested field read data from an ancestor type without...","image":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","thumbnailUrl":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","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/federation-contexts-in-native-composition-xyvzzm3c2","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,graphql,hive","timeRequired":"PT1M"}
{"@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":"Federation Contexts in Native Composition"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/federation-contexts-in-native-composition-xyvzzm3c2#faq","mainEntity":[{"@type":"Question","name":"How do I pass data from a parent type to a nested field in Apollo Federation without adding it as a public argument?","acceptedAnswer":{"@type":"Answer","text":"Use the @context and @fromContext directives. A type declares available data with @context, and a nested field reads a value from the nearest matching context using @fromContext. For example, a Product type can provide a $productContext, and Pricing.price can pull currency from it. The router resolves this behind the scenes, so the argument never appears in the public schema. Developers wiring federated schemas can follow directive support changes like this via daily.dev."}},{"@type":"Question","name":"Which version of theguild/federation-composition adds support for @context and @fromContext directives?","acceptedAnswer":{"@type":"Answer","text":"Version 0.26.0 of @theguild/federation-composition adds understanding of the @context and @fromContext directives, validating that contexts are used correctly during schema composition. Schemas using these directives can now be published, checked, and composed through Hive's native composition, rather than failing validation or requiring workarounds. Teams tracking federation tooling updates can follow releases like this on daily.dev."}}]}
```

