def METHOD_NAME(self, field_def):
    if field_def.type.ofType is None:
        ofType = field_def.type
    else:
        ofType = field_def.type.ofType
    while ofType.kind not in ("SCALAR", "OBJECT", "ENUM"):
        ofType = ofType.ofType
    return self.types[ofType.name]