def fieldsConversion(fields):
    """
    Convert fields to list of fields to filter
    """
    if isinstance(fields, str):
        return [fields]
    elif isinstance(fields, list):
        for field in fields:
            assert isinstance(field, str)
        return fields
    else:
        raise TypeError('fields should be string or list of string')
