Skip to content

Option to include 'extensions' top-level key from subgraphs #8482

@dchukmasov

Description

@dchukmasov

Describe the solution you'd like

Graphql specification describes top-level 'extensions' key as a valid part of graphql server response. However, apollo router removes any extensions from the subgraph response. There is also no config to tweak this behavior. The closest include_subgraph_errors works only for 'errors' top-level key, not the 'extensions'.

Describe alternatives you've considered

Writing custom Rhai Script for the matter is an option that requires proficiency, tweaking router deployment as well as will create overhead over all responses for such a simple task as forwarding data from subgraph to the client.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions