I want to inherit common arguments from one input object type.
I tried below code but it didn't work anyone has other solution?
module TodoInputBase
def self.included(input)
argument :content, types.String
argument :due_by, types.String
end
end
TodoUpdateInput = GraphQL::InputObjectType.define do
name "TodoUpdateInput"
include TodoInputBase
end
TodoCreateInput = GraphQL::InputObjectType.define do
name "TodoCreateInput"
include TodoInputBase
argument :author, !types.String
end`