def _grapql_type_for_reference_field(self, field_name: str, rpsl_field: RPSLTextField) -> Tuple[(Optional[str], Optional[str])]:
    '\n        Return the GraphQL name and type for a reference field.\n        For example, for a field "admin-c" that refers to person/role,\n        returns (\'adminC\', \'[RPSLContactUnion!]\').\n        Some fields are excluded because they are syntactical references,\n        not real references.\n        '
    if (isinstance(rpsl_field, RPSLReferenceField) and getattr(rpsl_field, 'referring', None)):
        rpsl_field.resolve_references()
        graphql_name = (snake_to_camel_case(field_name) + 'Objs')
        grapql_referring = set(rpsl_field.referring_object_classes)
        if (RPSLAutNum in grapql_referring):
            grapql_referring.remove(RPSLAutNum)
        if (RPSLInetRtr in grapql_referring):
            grapql_referring.remove(RPSLInetRtr)
        if (grapql_referring == {RPSLPerson, RPSLRole}):
            graphql_type = '[RPSLContactUnion!]'
        else:
            graphql_type = (('[' + grapql_referring.pop().__name__) + '!]')
        return (graphql_name, graphql_type)
    return (None, None)
Return the GraphQL name and type for a reference field.
For example, for a field "admin-c" that refers to person/role,
returns ('adminC', '[RPSLContactUnion!]').
Some fields are excluded because they are syntactical references,
not real references.
def _grapql_type_for_reference_field(self, field_name: str, rpsl_field: RPSLTextField) -> Tuple[(Optional[str], Optional[str])]:
    '\n        Return the GraphQL name and type for a reference field.\n        For example, for a field "admin-c" that refers to person/role,\n        returns (\'adminC\', \'[RPSLContactUnion!]\').\n        Some fields are excluded because they are syntactical references,\n        not real references.\n        '
    if (isinstance(rpsl_field, RPSLReferenceField) and getattr(rpsl_field, 'referring', None)):
        rpsl_field.resolve_references()
        graphql_name = (snake_to_camel_case(field_name) + 'Objs')
        grapql_referring = set(rpsl_field.referring_object_classes)
        if (RPSLAutNum in grapql_referring):
            grapql_referring.remove(RPSLAutNum)
        if (RPSLInetRtr in grapql_referring):
            grapql_referring.remove(RPSLInetRtr)
        if (grapql_referring == {RPSLPerson, RPSLRole}):
            graphql_type = '[RPSLContactUnion!]'
        else:
            graphql_type = (('[' + grapql_referring.pop().__name__) + '!]')
        return (graphql_name, graphql_type)
    return (None, None)