Forward Client Extensions allow you to share arbitrary data between clients and subgraphs. For subscriptions, it is the only method for sharing init-session data.
Cosmo Router supports sending the “extensions” field to Subgraphs. If a client sends an “extensions” field alongside a Query or Mutation, or alternatively as part of the “payload” of a Subscription Request, Cosmo Router will by default include the “extensions” field in all Subgraph requests.This feature allows you to extend GraphQL in a very flexible way as defined by the GraphQL over HTTP specification.Here’s an example on how this can be used: