I have to declare in my schema several object models as type and as input.
type Agreement {
id: Int
agmtCategCd: String
agmtSubcategyCd: String
}
input AgreementInput {
id: Int
agmtCategCd: String
agmtSubcategyCd: String
}
As you see the body of AgreementInput and Agreement is exactly the same.
I want to avoid duplicate code. Is there a manner to avoid that ? for example
AgreementInput extends Agreement
or
input AgreementInput = Agreement