Replies: 1 comment 1 reply
-
I tried declaring DgsEntityFetcher for the interface type as well as the implementing types, but they remain unused. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, is it possible to declare an entity fetcher on an interface object?
Sadly dgsData data fetching would not be enough since this is a federated setting.
I would be able to resolve type and data by ID.
Example:
interface A @key(fields: "id") {
id: ID!
...
}
type B implements A {...}
type C implements A {...}
//this is a shared object across multiple services
type SomeObject {
typeAField: A @provides(fields: "id")
}
Beta Was this translation helpful? Give feedback.
All reactions