Answer the question
In order to leave comments, you need to log in
How to describe a directive that takes a GraphQL type as a parameter?
I have a directive that changes types in a certain way, while receiving the name of one of the types as input. What is the correct way to describe a type parameter?
directive @combine(type: ????)
type TypeA {
...
}
type TypeB @combine (type: TypeA) {
...
}
directive @combine(type: Type)
scalar Type
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question