Skip to content

How to @override a field from another subgraph using original value from that subgraph #3147

@kindermax

Description

@kindermax

My case is: I have two subgraphs

products with type Product

type Product @key("id") {
  id ID!
  name: String!
}

and translations where I am trying to override name field

type Product @key("id") {
  id ID! @external
  name: String! @requires("name") @override("products")
}

The problem is - I do not know how to tell Gateway/Router that I need a field name from products subgraph and then I will use it in translations subgraph to generate a new value based on original value.

For example: if name field from products subgraph is IPhone, I need to modify it for example like: IPhone (EN).

Is it possible to achieve what I am trying to do ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions