code: func IsInputType(ttype Type) bool {
  	switch GetNamed(ttype).(type) {
  	case *Scalar, *Enum, *InputObject:
  		return true
  	default:
  		return false
  	}
  }
docs: // IsInputType determines if given type is a GraphQLInputType