async def METHOD_NAME(filter: CourseFilter):
    """
    Fetches a list of courses that match the given name (or code),
    credits and school.
    Returns only the course codes, but allows up to 3000 results.
    """
    return [
        c.code
        for c in await DbCourse.prisma().find_many(
            where=filter.as_db_filter(),
            take=3000,
        )
    ]