def METHOD_NAME(domain, doc_class, limit=None, skip=None):
    """
    Given a domain and doc class, get all docs matching that domain and type
    in order to prevent this from being used on a doc_class with many docs per domain
    doc_class must be white-listed.
    """
    whitelist = [
        'CallCenterIndicatorConfig',
        'CommCareCaseGroup',
        'HQGroupExportConfiguration',
        'Group',
        'ReportConfiguration',
        'RegistryReportConfiguration',
        'LinkedApplication',
    ]
    doc_type = doc_class.__name__
    assert doc_type in whitelist
    kwargs = {}
    if limit is not None:
        kwargs['limit'] = limit
    if skip is not None:
        kwargs['skip'] = skip
    return doc_class.view(
        'by_domain_doc_type_date/view',
        startkey=[domain, doc_type],
        endkey=[domain, doc_type, {}],
        reduce=False,
        include_docs=True,
        **kwargs
    ).all()