from typing import OrderedDict


def _get_mapped_fields(field_mapper, model_class):
    """ Use model metadata to produce Graphene Fields

    :param model_class: class to inspect
    :return: OrderedDict of fieldname to Graphene Field
    """
    return OrderedDict(field_mapper(model_class))