DRY with schema of multiple types implementing multiple interfaces #1536
Unanswered
bernardo-amorim
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose I have the following schema for a subgraph:
The resolvers for
aField
andbField
have the same implementation for all types that implement it.How can I implement that in TypeGraphQL with maximum DRY? Ideally, I would have classes for
InterfaceA
andInterfaceB
and for their resolvers, and classes with empty bodies for the types, but I can't find a way of doing thatBeta Was this translation helpful? Give feedback.
All reactions