# Is is possible to convey extensions from a subgraph?

**URL:** <https://community.apollographql.com/t/is-is-possible-to-convey-extensions-from-a-subgraph/5815>\
**Category:** Schema Design\
**Tags:** server, federation\
**Created:** [February 24, 2023, 8:26pm UTC](https://community.apollographql.com/t/is-is-possible-to-convey-extensions-from-a-subgraph/5815 "2023-02-24T20:26:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![donald.ball](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/donald.ball/32/3346_2.png) [@donald.ball](https://community.apollographql.com/u/donald.ball)\
**Post date:** [February 24, 2023, 8:26pm UTC](https://community.apollographql.com/t/is-is-possible-to-convey-extensions-from-a-subgraph/5815/1 "2023-02-24T20:26:35Z")

</div>

We have a gqlgen subgraph running behind the nodejs apollo federated server (@apollo/gateway@2.3.2; @apollo/server@4.4.0). We’d like to offer some semi-structured data for certain queries in the extensions portion of the response. It works fine when we hit the subgraph server directly but apollo is apparently discarding the extensions data.

Is it possible to configure apollo to convey these data? I have reviewed the obvious integration points and haven’t found such an option yet, alas.

---

<div class="post-metadata">

**Author:** ![shameersheik](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/shameersheik/32/6316_2.png) [@shameersheik](https://community.apollographql.com/u/shameersheik)\
**Post date:** [August 7, 2025, 2:33pm UTC](https://community.apollographql.com/t/is-is-possible-to-convey-extensions-from-a-subgraph/5815/2 "2025-08-07T14:33:03Z")

</div>

Yes, I was able to do this by adding it to the GraphqlContext object. Was able to append the response that i received from my subgraph to the GraphqlContext.

Then I added a plugin for “willSendResponse” that checks for the data in the GraphqlContext and add that to the response.extensions object.

Make sure to wire that plugin to your graphql server as well.
