-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to @override a field from another subgraph using original value from that subgraph #3147
Comments
Hello 👋 // products
type Product @key("id") {
id ID!
privateName: String! @inaccessible // <- this will not be available in the public API
}
// translations
type Product @key("id") {
id ID!
privateName: String! @external @inaccessible
name: String! @requires("privateName")
} |
Ok, that's a solution, thank you. Is it any chance that in the future federation will allow it to be possible to achieve this as I described ? |
👋 As the old saying goes, never say never.... but it seems very unlikely that we will be changing the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My case is: I have two subgraphs
products
with typeProduct
and
translations
where I am trying to overridename
fieldThe problem is - I do not know how to tell Gateway/Router that I need a field
name
fromproducts
subgraph and then I will use it intranslations
subgraph to generate a new value based on original value.For example: if
name
field fromproducts
subgraph isIPhone
, I need to modify it for example like:IPhone (EN)
.Is it possible to achieve what I am trying to do ?
The text was updated successfully, but these errors were encountered: